1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

Merge pull request #126762 from wizeman/u/fix-imv-desktop

imv: install .desktop file
This commit is contained in:
Michele Guerini Rocco 2021-06-14 01:34:27 +02:00 committed by GitHub
commit 9f60d2fa62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,6 @@
, cmocka
, docbook_xsl
, libxslt
, fontconfig
, meson
, ninja
, pkg-config
@ -90,6 +89,12 @@ stdenv.mkDerivation rec {
] ++ windowSystems."${withWindowSystem}"
++ builtins.map (b: backends."${b}") withBackends;
postInstall = ''
# fix the executable path and install the desktop item
substituteInPlace ../files/imv.desktop --replace "imv %F" "$out/bin/imv %F"
install -Dm644 ../files/imv.desktop $out/share/applications/
'';
postFixup = lib.optionalString (withWindowSystem == "all") ''
# The `bin/imv` script assumes imv-wayland or imv-x11 in PATH,
# so we have to fix those to the binaries we installed into the /nix/store
@ -104,7 +109,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "A command line image viewer for tiling window managers";
homepage = "https://github.com/eXeC64/imv";
license = licenses.gpl2;
license = licenses.mit;
maintainers = with maintainers; [ rnhmjoj markus1189 ];
platforms = platforms.all;
};