From 3d22c964af3282557cdb6771c5d6671a9e154206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Wed, 9 Dec 2020 12:50:58 +0100 Subject: [PATCH] milkytracker: install .desktop, .appdata and icon files Fixes https://github.com/NixOS/nixpkgs/issues/106288. --- pkgs/applications/audio/milkytracker/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/audio/milkytracker/default.nix b/pkgs/applications/audio/milkytracker/default.nix index d7b9e5a6355b..405787e88714 100644 --- a/pkgs/applications/audio/milkytracker/default.nix +++ b/pkgs/applications/audio/milkytracker/default.nix @@ -19,6 +19,12 @@ stdenv.mkDerivation rec { # Somehow this does not get set automatically cmakeFlags = [ "-DSDL2MAIN_LIBRARY=${SDL2}/lib/libSDL2.so" ]; + postInstall = '' + install -Dm644 $src/resources/milkytracker.desktop $out/share/applications/milkytracker.desktop + install -Dm644 $src/resources/pictures/carton.png $out/share/pixmaps/milkytracker.png + install -Dm644 $src/resources/milkytracker.appdata $out/share/appdata/milkytracker.appdata.xml + ''; + meta = with stdenv.lib; { description = "Music tracker application, similar to Fasttracker II"; homepage = "http://milkytracker.org";