Skip to content

Commit

Permalink
build: use pkgs.callPackage to allow overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed Jun 10, 2024
1 parent b315f3f commit accfee7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@
};
{
packages = {
default = with pkgs.lispPackagesLite; lispScript rec {
default = pkgs.callPackage ({
lispPackagesLite
, dockutil
, findutils
, jq
, rsync
}: with lispPackagesLite; lispScript rec {
name = "mac-app-util";
src = ./main.lisp;
dependencies = [
Expand All @@ -71,14 +77,19 @@
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
postInstall = ''
wrapProgramBinary "$out/bin/${name}" \
--suffix PATH : "${with pkgs; lib.makeBinPath [ dockutil rsync findutils jq ]}"
--suffix PATH : "${with pkgs; lib.makeBinPath [
dockutil
rsync
findutils
jq
]}"
'';
installCheckPhase = ''
$out/bin/${name} --help
'';
doInstallCheck = true;
meta.license = pkgs.lib.licenses.agpl3Only;
};
}) {};
};
}));
}

0 comments on commit accfee7

Please sign in to comment.