Skip to content

Commit 3862567

Browse files
committed
More debian shenangigans.
1 parent 166ada4 commit 3862567

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

flake.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@
4646
# nix eval --json .#lib-srcs
4747
#
4848
lib-srcs = {
49-
secp256k1 = pkgs.secp256k1.src.rev;
50-
sodium = pkgs.libsodium-vrf.src.rev;
51-
blst = pkgs.libblst.src.rev;
49+
secp256k1 = pkgs.secp256k1.version;
50+
sodium-vrf= pkgs.libsodium-vrf.version;
51+
sodium = pkgs.libsodium.version;
52+
blst = pkgs.libblst.version;
5253
};
5354

5455
dist = let
@@ -57,7 +58,7 @@
5758
mkDebianPkg = prefix: drv: let
5859
control = pkgs.writeText "control" ''
5960
Package: ${drv.pname}
60-
Version: 0:${drv.version}
61+
Version: 0:0+${drv.version}
6162
Architecture: amd64
6263
Maintainer: IOG <[email protected]>
6364
Description: ${drv.meta.description}

overlays/crypto/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
inputs: final: prev: {
1+
inputs: final: prev: rec {
22
# We pin our own crypto libraries here, so that we have control over
33
# the specific revisions we use (assuming a recent enough iohk-nix).
44
#
@@ -9,6 +9,9 @@ inputs: final: prev: {
99
libsodium-vrf = final.callPackage ./libsodium.nix { inherit inputs; };
1010
libblst = final.callPackage ./libblst.nix { inherit inputs; };
1111
libsecp256k1 = final.callPackage ./libsecp256k1.nix { inherit inputs; };
12+
13+
# override the nixpkgs ones which do not have the `lib` prefix.
14+
secp256k1 = libsecp256k1;
1215
}
1316
# Make these libraries also available to haskell-nix's pkg-config
1417
# map when solving for dependencies with cabal.

overlays/crypto/libsecp256k1.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
44
pname = "secp256k1";
55
version = inputs.secp256k1.shortRev;
66

7-
src = inputs.shortRev;
7+
src = inputs.secp256k1;
88

99
nativeBuildInputs = [ autoreconfHook ];
1010

0 commit comments

Comments
 (0)