add shellcheck test

This commit is contained in:
zimbatm 2022-12-21 18:53:39 +01:00
parent c919e03850
commit 32ba35c4ee
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -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
'';
}