adding p2prc import to haskell module

This commit is contained in:
2025-01-11 01:07:13 +00:00
parent f47e3f33b1
commit 6cce007ae5
2 changed files with 97 additions and 3 deletions

View File

@@ -1,5 +1,48 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gomod2nix": {
"inputs": {
"flake-utils": [
"p2prc",
"flake-utils"
],
"nixpkgs": [
"p2prc",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733668782,
"narHash": "sha256-tPsqU00FhgdFr0JiQUiBMgPVbl1jbPCY5gbFiJycL3I=",
"owner": "nix-community",
"repo": "gomod2nix",
"rev": "514283ec89c39ad0079ff2f3b1437404e4cba608",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "gomod2nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 0,
@@ -12,9 +55,43 @@
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1735834308,
"narHash": "sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6df24922a1400241dae323af55f30e4318a6ca65",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"p2prc": {
"inputs": {
"flake-utils": "flake-utils",
"gomod2nix": "gomod2nix",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 0,
"narHash": "sha256-b/H6woJaEJkUHhVCUnfKEIzqyBSlSNNAMyEWn4yzqM4=",
"path": "/nix/store/ax89kmcarhyvzgfiqihlwxhv99y9a5sn-source",
"type": "path"
},
"original": {
"path": "/nix/store/ax89kmcarhyvzgfiqihlwxhv99y9a5sn-source",
"type": "path"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"p2prc": "p2prc",
"utils": "utils"
}
},
@@ -33,9 +110,24 @@
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,

View File

@@ -1,11 +1,12 @@
{
description = "A very basic flake";
description = "Nix flake for P2PRC Haskell library";
inputs = {
p2prc = { url = "../../"; };
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
outputs = { self, nixpkgs, utils, p2prc }: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
@@ -15,6 +16,7 @@
cabal-install
haskell.compiler.ghc96
zlib.dev
p2prc.packages.default
];
};
}