3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #177039 from Sciencentistguy/makeDesktopItem-overridable

build-support/makeDesktopItem: make overridable
This commit is contained in:
Robert Hensing 2022-07-16 20:37:06 +02:00 committed by GitHub
commit 17019dcf9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
# Please keep in spec order for easier maintenance.
# When adding a new value, don't forget to update the Version field below!
# See https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
{ name # The name of the desktop file
lib.makeOverridable ({ name # The name of the desktop file
, type ? "Application"
# version is hardcoded
, desktopName # The name of the application
@ -115,4 +115,4 @@ writeTextFile {
destination = "/share/applications/${name}.desktop";
text = builtins.concatStringsSep "\n" content;
checkPhase = ''${buildPackages.desktop-file-utils}/bin/desktop-file-validate "$target"'';
}
})