X-Git-Url: http://git.scottworley.com/nix-env-apps/blobdiff_plain/1ccdf7583e4bb442185a3b36ad61231e5e67218f..9e3ecfc382cb71438998671333a439aa7b8f087e:/default.nix diff --git a/default.nix b/default.nix index ad68b48..defa1ef 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,7 @@ { 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.0"; @@ -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";