mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
Merge pull request #66489 from xtruder/pkgs/yubikey-personalization-gui/desktop-file
yubikey-personalization-gui: install man, desktop files and icons
This commit is contained in:
commit
999acbf7a6
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl, mkDerivation, pkgconfig, yubikey-personalization, qtbase, qmake, libyubikey }:
|
{ stdenv, fetchurl, mkDerivation, pkgconfig, qtbase, qmake, imagemagick
|
||||||
|
, libyubikey, yubikey-personalization }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
name = "yubikey-personalization-gui-3.1.25";
|
name = "yubikey-personalization-gui-3.1.25";
|
||||||
@ -8,12 +9,27 @@ mkDerivation rec {
|
|||||||
sha256 = "1knyv5yss8lhzaff6jpfqv12fjf1b8b21mfxzx3qi0hw4nl8n2v8";
|
sha256 = "1knyv5yss8lhzaff6jpfqv12fjf1b8b21mfxzx3qi0hw4nl8n2v8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig qmake ];
|
nativeBuildInputs = [ pkgconfig qmake imagemagick ];
|
||||||
buildInputs = [ yubikey-personalization qtbase libyubikey ];
|
buildInputs = [ yubikey-personalization qtbase libyubikey ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
install -D -m0755 build/release/yubikey-personalization-gui "$out/bin/yubikey-personalization-gui"
|
||||||
cp build/release/yubikey-personalization-gui $out/bin
|
install -D -m0644 resources/lin/yubikey-personalization-gui.1 "$out/share/man/man1/yubikey-personalization-gui.1"
|
||||||
|
|
||||||
|
# Desktop files
|
||||||
|
install -D -m0644 resources/lin/yubikey-personalization-gui.desktop "$out/share/applications/yubikey-personalization-gui.desktop"
|
||||||
|
install -D -m0644 resources/lin/yubikey-personalization-gui.desktop "$out/share/pixmaps/yubikey-personalization-gui.xpm"
|
||||||
|
|
||||||
|
# Icons
|
||||||
|
install -D -m0644 resources/lin/yubikey-personalization-gui.png "$out/share/icons/hicolor/128x128/apps/yubikey-personalization-gui.png"
|
||||||
|
for SIZE in 16 24 32 48 64 96; do
|
||||||
|
# set modify/create for reproducible builds
|
||||||
|
convert -scale ''${SIZE} +set date:create +set date:modify \
|
||||||
|
resources/lin/yubikey-personalization-gui.png \
|
||||||
|
yubikey-personalization-gui.png
|
||||||
|
|
||||||
|
install -D -m0644 yubikey-personalization-gui.png "$out/share/icons/hicolor/''${SIZE}x''${SIZE}/apps/yubikey-personalization-gui.png"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user