1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

packaging-nix: Add criterion to devShells to allow building unit-tests

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-06-23 11:34:21 +02:00
parent 0cb4ac79d5
commit 4c662ff56a
2 changed files with 8 additions and 7 deletions

View file

@ -90,11 +90,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1686656800,
"narHash": "sha256-duScdQZNeZcde0JwmQ9W4XfqlO/Z24MDhlTq2MokuSM=",
"lastModified": 1687482344,
"narHash": "sha256-ZKsH8Cpb97Zbozaz26XkLv7Swa5uk3G1Vmy34MVt1ro=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2b273c2351fe1ab490158cf8acc8aafad02592ce",
"rev": "3612945be80f916cde80537433ec0a4a0e6b3d3b",
"type": "github"
},
"original": {

View file

@ -122,19 +122,20 @@
pkgs = pkgsFor system;
shellHook = ''[ -z "$PS1" ] || exec "$SHELL"'';
hardeningDisable = ["all"];
packages = with pkgs; [criterion];
in rec {
default = full;
minimal = pkgs.mkShell {
inherit shellHook hardeningDisable;
inherit shellHook hardeningDisable packages;
name = "minimal";
inputsFrom = [pkgs.villas-minimal];
inputsFrom = with pkgs; [villas-minimal];
};
full = pkgs.mkShell {
inherit shellHook hardeningDisable;
inherit shellHook hardeningDisable packages;
name = "full";
inputsFrom = [pkgs.villas];
inputsFrom = with pkgs; [villas];
};
}
);