{ pkgs ? import <nixpkgs> { }, 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";
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";