pizauth: use upstream's install targets
Removes systemd files from Darwin builds.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
stdenv,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
@@ -19,18 +19,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
cargoHash = "sha256-9cDVbDCb8vY6KxreyiMX3gp13bXZpxTQOwYbk6TEVpc=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd pizauth \
|
||||
--bash share/bash/completion.bash \
|
||||
--fish share/fish/pizauth.fish
|
||||
|
||||
installManPage pizauth.1 pizauth.conf.5
|
||||
|
||||
substituteInPlace lib/systemd/user/pizauth.service \
|
||||
--replace-fail /usr/bin/pizauth "$out/bin/pizauth"
|
||||
install -Dm444 lib/systemd/user/pizauth{,-*}.service -t $out/lib/systemd/user
|
||||
make PREFIX=$out install ${lib.optionalString stdenv.hostPlatform.isLinux "install-systemd"}
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=pizauth-(.*)" ]; };
|
||||
|
||||
Reference in New Issue
Block a user