3
0
Fork 0
forked from mirrors/nixpkgs

makeDesktopItem: use desktop-file-utils from buildPackages in checkPhase

This commit is contained in:
Nick Cao 2022-03-08 19:38:19 +08:00 committed by Alyssa Ross
parent dfe86dd21f
commit 1454380313

View file

@ -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";
}