diff --git a/pkgs/applications/graphics/imv/default.nix b/pkgs/applications/graphics/imv/default.nix index 3f6a27cbc76a..e9488b845f22 100644 --- a/pkgs/applications/graphics/imv/default.nix +++ b/pkgs/applications/graphics/imv/default.nix @@ -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; };