summary refs log tree commit diff
path: root/pkgs/build-support/make-desktopitem/default.nix
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2022-03-08 19:38:19 +0800
committerAlyssa Ross <hi@alyssa.is>2022-03-08 12:44:36 +0000
commit14543803139758bf9f0d1eb6ce3c78bddd7b8a06 (patch)
tree3cd5385799ab66f80bc9b913fc4b8472f22b76c0 /pkgs/build-support/make-desktopitem/default.nix
parentdfe86dd21f2afb99c80404f907ab2b30e5405e38 (diff)
downloadnixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.tar
nixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.tar.gz
nixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.tar.bz2
nixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.tar.lz
nixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.tar.xz
nixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.tar.zst
nixpkgs-14543803139758bf9f0d1eb6ce3c78bddd7b8a06.zip
makeDesktopItem: use desktop-file-utils from buildPackages in checkPhase
Diffstat (limited to 'pkgs/build-support/make-desktopitem/default.nix')
-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 e0a57f4aa3f..31964953247 100644
--- a/pkgs/build-support/make-desktopitem/default.nix
+++ b/pkgs/build-support/make-desktopitem/default.nix
@@ -1,4 +1,4 @@
-{ lib, writeTextFile, desktop-file-utils }:
+{ lib, writeTextFile, buildPackages }:
 
 # All possible values as defined by the spec, version 1.4.
 # Please keep in spec order for easier maintenance.
@@ -119,5 +119,5 @@ writeTextFile {
   name = "${cleanName}.desktop";
   destination = "/share/applications/${cleanName}.desktop";
   text = builtins.concatStringsSep "\n" content;
-  checkPhase = "${desktop-file-utils}/bin/desktop-file-validate $target";
+  checkPhase = "${buildPackages.desktop-file-utils}/bin/desktop-file-validate $target";
 }