build-support/makeDesktopItem: make overridable

This commit is contained in:
Jamie Quigley 2022-06-09 14:33:08 +01:00
parent 7a375487d2
commit 1f4324c3de
No known key found for this signature in database
GPG key ID: 8E8FF66E2AE8D970

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"'';
}
})