Skip to content

Commit b6c30c2

Browse files
committed
Only pin libsodium for haskell code in tests
1 parent 0e5c94e commit b6c30c2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

ci.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@
3333
(final: prev: {
3434
haskell-nix = prev.haskell-nix // {
3535
inherit checkMaterialization;
36+
extraPkgconfigMappings = prev.haskell-nix.extraPkgconfigMappings or {} // {
37+
"libsodium" = [ "libsodium-18" ];
38+
};
3639
};
37-
libsodium = final.callPackage (inputs.nixpkgs-2311 + "/pkgs/development/libraries/libsodium") {};
40+
libsodium-18 = final.callPackage (inputs.nixpkgs-2311 + "/pkgs/development/libraries/libsodium") {};
3841
})
3942
];
4043
# Needed for dwarf tests

test/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
permittedInsecurePackages = ["libdwarf-20210528" "libdwarf-20181024" "dwarfdump-20181024"];
88
};
99
overlays = haskellNix.nixpkgsArgs.overlays ++ [
10-
(final: _prev: {
11-
libsodium = final.callPackage (haskellNix.sources.nixpkgs-2311 + "/pkgs/development/libraries/libsodium") {};
10+
(final: prev: {
11+
haskell-nix = prev.haskell-nix // {
12+
extraPkgconfigMappings = prev.haskell-nix.extraPkgconfigMappings or {} // {
13+
"libsodium" = [ "libsodium-18" ];
14+
};
15+
};
16+
libsodium-18 = final.callPackage (haskellNix.sources.nixpkgs-2311 + "/pkgs/development/libraries/libsodium") {};
1217
})
1318
];
1419
}

0 commit comments

Comments
 (0)