summary refs log tree commit diff
path: root/pkgs/games/the-powder-toy/default.nix
diff options
context:
space:
mode:
authormultiplealiases <conflictvegetable@protonmail.com>2023-11-15 09:39:48 +0800
committerEmery Hemingway <ehmry@posteo.net>2023-11-16 19:11:18 +0000
commit00f0d34a6cf422d69cd7d4b0853bacde1b853685 (patch)
treef7cde299058b36d7028c20c299fd5c7e99b001eb /pkgs/games/the-powder-toy/default.nix
parent0a2425dcff7b6f8bbd07455a877c49eb19c87b06 (diff)
downloadnixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.tar
nixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.tar.gz
nixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.tar.bz2
nixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.tar.lz
nixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.tar.xz
nixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.tar.zst
nixpkgs-00f0d34a6cf422d69cd7d4b0853bacde1b853685.zip
the-powder-toy: only install .desktop on Linux
Diffstat (limited to 'pkgs/games/the-powder-toy/default.nix')
-rw-r--r--pkgs/games/the-powder-toy/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/games/the-powder-toy/default.nix b/pkgs/games/the-powder-toy/default.nix
index df8158bf30f..c1c9415b90d 100644
--- a/pkgs/games/the-powder-toy/default.nix
+++ b/pkgs/games/the-powder-toy/default.nix
@@ -38,8 +38,9 @@ stdenv.mkDerivation rec {
     install -Dm 755 powder $out/bin/powder
 
     mkdir -p $out/share/applications
-    mv ./resources/powder.desktop $out/share/applications
     mv ../resources $out/share
+  '' + lib.optionalString stdenv.isLinux ''
+    mv ./resources/powder.desktop $out/share/applications
   '';
 
   meta = with lib; {