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,
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";
}