mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
add shellcheck test
This commit is contained in:
parent
c919e03850
commit
32ba35c4ee
16
package.nix
16
package.nix
@ -1,4 +1,12 @@
|
||||
{ stdenvNoCC, makeWrapper, lib, openssh, gitMinimal, nix, coreutils }:
|
||||
{ stdenvNoCC
|
||||
, makeWrapper
|
||||
, lib
|
||||
, openssh
|
||||
, gitMinimal
|
||||
, nix
|
||||
, coreutils
|
||||
, shellcheck
|
||||
}:
|
||||
let
|
||||
runtimeDeps = [
|
||||
openssh
|
||||
@ -12,10 +20,16 @@ stdenvNoCC.mkDerivation {
|
||||
src = ./.;
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
shellcheck
|
||||
];
|
||||
installPhase = ''
|
||||
install -D -m755 nixos-remote $out/bin/nixos-remote
|
||||
wrapProgram "$out/bin/nixos-remote" \
|
||||
--prefix PATH : "${lib.makeBinPath runtimeDeps}"
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
shellcheck ./nixos-remote
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user