1 # Notes for using this package outside of NixOS:
2 # 1. --pure cannot be used (as pkexec will be used from the path,
3 # and we can't use nixpkgs polkit due to lack of setuid bit)
4 # 2. You must prefix the blivet-gui command with "SHELL=/bin/bash"
5 # (otherwise your system polkit will reject the SHEL Lfrom nixpkgs).
13 gobject-introspection,
17 pkexecPath ? "pkexec",
22 python3.pkgs.buildPythonApplication rec {
25 format = "setuptools";
27 src = fetchFromGitHub {
28 owner = "storaged-project";
31 hash = "sha256-fKd2Vj8clZ6Q7bZipfN5umyMW2rBXMUnpAuDE70p67U=";
35 substituteInPlace blivetgui/gui_utils.py --replace-fail /usr/share $out/share
36 substituteInPlace blivet-gui --replace-fail "pkexec blivet-gui-daemon" "pkexec $out/bin/blivet-gui-daemon"
37 substituteInPlace blivet-gui --replace-fail "pkexec" "${pkexecPath}"
46 buildInputs = [ gtk3 ];
58 ''${gappsWrapperArgs[@]}
59 --prefix XDG_DATA_DIRS : ${adwaita-icon-theme}/share
63 passthru.tests.version = testers.testVersion { package = blivet-gui; };
66 description = "GUI tool for storage configuration using blivet library";
67 homepage = "https://fedoraproject.org/wiki/Blivet";
68 license = lib.licenses.gpl2Plus;
69 mainProgram = "blivet-gui";
70 maintainers = with lib.maintainers; [ cybershadow ];
71 platforms = lib.platforms.linux;