mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] pizauth: use upstream's install targets (#528884)
This commit is contained in:
commit
2152e7caa5
1 changed files with 6 additions and 13 deletions
|
|
@ -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-(.*)" ]; };
|
||||
|
|
@ -43,7 +33,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with lib.maintainers; [ moraxyc ];
|
||||
maintainers = with lib.maintainers; [
|
||||
moraxyc
|
||||
doronbehar
|
||||
];
|
||||
mainProgram = "pizauth";
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue