1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2 pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage
3 , gobject-introspection, gtk4, lib, makeDesktopItem, mypy, pylint, pygobject3
4 , setuptools, wrapGAppsHook4, }:
5 buildPythonPackage rec {
9 src = lib.cleanSource ./.;
12 build-system = [ setuptools ];
15 checkPhase = "./test.sh";
17 nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ];
18 nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
19 buildInputs = [ gtk4 ];
20 pythonPath = [ pygobject3 ];
23 cp -r $desktopItem/share $out
26 desktopItem = makeDesktopItem {
30 comment = "Configure nix-env Apps";
32 genericName = "Configure Apps";
33 categories = [ "Settings" ];
38 "A simple GUI for managing declarative nix-env user environments";
39 homepage = "https://git.scottworley.com/nix-env-apps";
40 license = pkgs.lib.licenses.gpl3;
41 maintainers = with pkgs.lib.maintainers; [ chkno ];