summary refs log tree commit diff
path: root/pkgs/build-support/make-desktopitem
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-01-10 15:17:33 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-01-15 08:37:02 +0100
commitf50d80f62763b2fd54ac328065dc70980d39bf74 (patch)
tree9ad43752bf6ee097ccb3b6b8e87c3e798297aac0 /pkgs/build-support/make-desktopitem
parent2e78e19de0da98b6ccf099eff82a2f19fe567d1a (diff)
downloadnixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.tar
nixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.tar.gz
nixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.tar.bz2
nixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.tar.lz
nixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.tar.xz
nixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.tar.zst
nixpkgs-f50d80f62763b2fd54ac328065dc70980d39bf74.zip
makeDesktopItem: change `name` of the derivations
The name wasn't suggesting what kind of stuff is in there;
now it's the same as the name of the file that gets generated.
Diffstat (limited to 'pkgs/build-support/make-desktopitem')
-rw-r--r--pkgs/build-support/make-desktopitem/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/make-desktopitem/default.nix b/pkgs/build-support/make-desktopitem/default.nix
index d4baf17adf1..2f6c827d875 100644
--- a/pkgs/build-support/make-desktopitem/default.nix
+++ b/pkgs/build-support/make-desktopitem/default.nix
@@ -13,10 +13,10 @@
 }:
 
 stdenv.mkDerivation {
-  inherit name;
+  name = "${name}.desktop";
   buildCommand = ''
     mkdir -p $out/share/applications
-    cat > $out/share/applications/$name.desktop <<EOF
+    cat > $out/share/applications/${name}.desktop <<EOF
     [Desktop Entry]
     Type=${type}
     Exec=${exec}