Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

build-support/makeDesktopItem: make overridable

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