Commit 318278aa authored by Gavin John's avatar Gavin John
Browse files

makeDesktopItem: allow configuring output directory

parent 6d9244a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
lib.makeOverridable (
  {
    name, # The name of the desktop file
    destination ? "/share/applications",
    type ? "Application",
    # version is hardcoded
    desktopName, # The name of the application
@@ -135,7 +136,7 @@ lib.makeOverridable (
  in
  writeTextFile {
    name = "${name}.${extension}";
    destination = "/share/applications/${name}.${extension}";
    destination = "${destination}/${name}.${extension}";
    text = builtins.concatStringsSep "\n" content;
    checkPhase = ''${buildPackages.desktop-file-utils}/bin/desktop-file-validate "$target"'';
  }