mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
nixosTests.nixops: remove dead code from Nix expression
This commit is contained in:
parent
8a8d07bc15
commit
97a7ce7aa6
@ -93,23 +93,5 @@ let
|
|||||||
|
|
||||||
inherit (import ../ssh-keys.nix pkgs) snakeOilPrivateKey snakeOilPublicKey;
|
inherit (import ../ssh-keys.nix pkgs) snakeOilPrivateKey snakeOilPublicKey;
|
||||||
|
|
||||||
/*
|
|
||||||
Return a store path with a closure containing everything including
|
|
||||||
derivations and all build dependency outputs, all the way down.
|
|
||||||
*/
|
|
||||||
allDrvOutputs = pkg:
|
|
||||||
let name = "allDrvOutputs-${pkg.pname or pkg.name or "unknown"}";
|
|
||||||
in
|
|
||||||
pkgs.runCommand name { refs = pkgs.writeReferencesToFile pkg.drvPath; } ''
|
|
||||||
touch $out
|
|
||||||
while read ref; do
|
|
||||||
case $ref in
|
|
||||||
*.drv)
|
|
||||||
cat $ref >>$out
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done <$refs
|
|
||||||
'';
|
|
||||||
|
|
||||||
in
|
in
|
||||||
tests
|
tests
|
||||||
|
Loading…
Reference in New Issue
Block a user