check-nur: extract from the flake
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -456,16 +456,10 @@
|
|||||||
# validates that my repo can be included in the Nix User Repository
|
# validates that my repo can be included in the Nix User Repository
|
||||||
type = "app";
|
type = "app";
|
||||||
program = builtins.toString (pkgs.writeShellScript "check-nur" ''
|
program = builtins.toString (pkgs.writeShellScript "check-nur" ''
|
||||||
cd ${./.}/integrations/nur
|
# pass through these attrs
|
||||||
NIX_PATH= NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-env -f . -qa \* --meta --xml \
|
${./.}/scripts/check-nur \
|
||||||
--allowed-uris https://static.rust-lang.org \
|
|
||||||
--option restrict-eval true \
|
|
||||||
--option allow-import-from-derivation true \
|
|
||||||
--drv-path --show-trace \
|
|
||||||
-I nixpkgs=${nixpkgsUnpatched} \
|
-I nixpkgs=${nixpkgsUnpatched} \
|
||||||
-I nixpkgs-overlays=${./.}/hosts/common/nix/overlay \
|
-I nixpkgs-overlays=${./.}/hosts/common/nix/overlay
|
||||||
-I ../../ \
|
|
||||||
| tee # tee to prevent interactive mode
|
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
12
scripts/check-nur
Executable file
12
scripts/check-nur
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ../integrations/nur
|
||||||
|
# TODO: should include `-I nixpkgs=</path/to/an/unpatched/nixpkgs>`
|
||||||
|
NIX_PATH= NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-env -f . -qa \* --meta --xml \
|
||||||
|
--allowed-uris https://static.rust-lang.org \
|
||||||
|
--option restrict-eval true \
|
||||||
|
--option allow-import-from-derivation true \
|
||||||
|
--drv-path --show-trace \
|
||||||
|
-I ../../ \
|
||||||
|
"$@" \
|
||||||
|
| tee # tee to prevent interactive mode
|
||||||
|
|
Reference in New Issue
Block a user