Switch to resholve
This commit is contained in:
parent
13c34cbabc
commit
d894affa35
1 changed files with 17 additions and 14 deletions
31
default.nix
31
default.nix
|
|
@ -7,13 +7,13 @@
|
|||
bats,
|
||||
shellcheck-minimal,
|
||||
gitMinimal,
|
||||
makeWrapper,
|
||||
resholve,
|
||||
}:
|
||||
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
resholve.mkDerivation {
|
||||
pname = "git-check-assertions";
|
||||
version = "0.0.1";
|
||||
|
||||
|
|
@ -25,10 +25,6 @@ stdenv.mkDerivation {
|
|||
];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
|
@ -57,16 +53,23 @@ stdenv.mkDerivation {
|
|||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp $src/git-check-assertions $out/bin/git-check-assertions
|
||||
chmod +x $out/bin/git-check-assertions
|
||||
wrapProgram $out/bin/git-check-assertions --prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
bash
|
||||
gitMinimal
|
||||
gnused
|
||||
]
|
||||
}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
solutions.default = {
|
||||
scripts = [ "bin/git-check-assertions" ];
|
||||
interpreter = lib.getExe bash;
|
||||
inputs = [
|
||||
gitMinimal
|
||||
gnused
|
||||
bash
|
||||
];
|
||||
execer = [
|
||||
# Not true at all, but ¯\_(ツ)_/¯
|
||||
"cannot:${lib.getExe bash}"
|
||||
"cannot:${lib.getExe gitMinimal}"
|
||||
];
|
||||
};
|
||||
|
||||
meta.mainProgram = "git-check-assertions";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue