X-Git-Url: http://git.scottworley.com/nix-env-apps/blobdiff_plain/12e0d984f6f8f40691368b88756d87747b8f0b65..b6e54cab589530a14e19bb3dc363ef2033d229e6:/default.nix diff --git a/default.nix b/default.nix index a0d1166..2d58ca3 100644 --- a/default.nix +++ b/default.nix @@ -1,10 +1,10 @@ { pkgs ? import { }, lint ? false }: pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage - , gobject-introspection, gtk4, lib, mypy, pylint, pygobject3, wrapGAppsHook4, - }: + , gobject-introspection, gtk4, lib, makeDesktopItem, mypy, pylint, pygobject3 + , wrapGAppsHook4, }: buildPythonPackage rec { pname = "apps"; - version = "1.0"; + version = "1.0.1"; src = lib.cleanSource ./.; @@ -16,6 +16,20 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage buildInputs = [ gtk4 ]; pythonPath = [ pygobject3 ]; + postInstall = '' + cp -r $desktopItem/share $out + ''; + + desktopItem = makeDesktopItem { + name = "Apps"; + exec = "apps"; + icon = ./apps.png; + comment = "Configure nix-env Apps"; + desktopName = "Apps"; + genericName = "Configure Apps"; + categories = [ "Settings" ]; + }; + meta = { description = "A simple GUI for managing declarative nix-env user environments";