1
0
2025-03-01 17:25:37 +08:00

34 lines
466 B
Nix

{
stdenv,
jq,
zlib-ng,
passh,
...
}:
let
bin = ./access-client;
desktop = ./access-client.desktop;
in
stdenv.mkDerivation rec {
pname = "access-client";
version = "1.0.0";
buildInputs = [
jq
zlib-ng
passh
];
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
cp -rv "${bin}" $out/bin
chmod +x $out/bin/*
mkdir -p $out/share/applications
cp -rv "${desktop}" $out/share/applications
'';
}