Switch to resholve

This commit is contained in:
Sven van Heugten 2026-02-22 16:06:50 +01:00
parent 13c34cbabc
commit d894affa35
No known key found for this signature in database
GPG key ID: D612F88666F4F660

View file

@ -7,13 +7,13 @@
bats, bats,
shellcheck-minimal, shellcheck-minimal,
gitMinimal, gitMinimal,
makeWrapper, resholve,
}: }:
let let
fs = lib.fileset; fs = lib.fileset;
in in
stdenv.mkDerivation { resholve.mkDerivation {
pname = "git-check-assertions"; pname = "git-check-assertions";
version = "0.0.1"; version = "0.0.1";
@ -25,10 +25,6 @@ stdenv.mkDerivation {
]; ];
}; };
nativeBuildInputs = [
makeWrapper
];
postPatch = '' postPatch = ''
patchShebangs . patchShebangs .
''; '';
@ -57,16 +53,23 @@ stdenv.mkDerivation {
runHook preInstall runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
cp $src/git-check-assertions $out/bin/git-check-assertions 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 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"; meta.mainProgram = "git-check-assertions";
} }