diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-04-23 18:53:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 18:53:08 -0500 |
commit | d771229e93f19d59ee138472eaeca45ed39394b8 (patch) | |
tree | 0c9f4bd310377fc209cfa2638fd99fae7d1fe53a /pkgs/tools | |
parent | 8d8fe7688bea7eee64c353bf36a9a6268dda7b01 (diff) | |
parent | 465f3fd464547516930b148714b283d5c3e33499 (diff) |
Merge pull request #306383 from khaneliman/btrfsassistant
btrfs-assistant: pkgs/tools/misc -> pkgs/by-name
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/btrfs-assistant/default.nix | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/pkgs/tools/misc/btrfs-assistant/default.nix b/pkgs/tools/misc/btrfs-assistant/default.nix deleted file mode 100644 index d3bdc74980228..0000000000000 --- a/pkgs/tools/misc/btrfs-assistant/default.nix +++ /dev/null @@ -1,90 +0,0 @@ -{ lib -, stdenv -, fetchFromGitLab -, bash -, btrfs-progs -, cmake -, coreutils -, git -, pkg-config -, qt6 -, snapper -, util-linux -, enableSnapper ? true -, nix-update-script -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "btrfs-assistant"; - version = "2.0"; - - src = fetchFromGitLab { - owner = "btrfs-assistant"; - repo = "btrfs-assistant"; - rev = finalAttrs.version; - hash = "sha256-nE8Vsc0leXWhbrjMgJDef6jl9MqdojRniGcvUmrQNUQ="; - }; - - nativeBuildInputs = [ - cmake - git - pkg-config - ]; - - buildInputs = [ - btrfs-progs - qt6.qtbase - qt6.qtsvg - qt6.qttools - qt6.qtwayland - ]; - - propagatedBuildInputs = [ qt6.wrapQtAppsHook ]; - - prePatch = '' - substituteInPlace src/util/System.cpp \ - --replace '/bin/bash' "${lib.getExe bash}" - '' - + lib.optionalString enableSnapper '' - substituteInPlace src/main.cpp \ - --replace '/usr/bin/snapper' "${lib.getExe snapper}" - ''; - - postPatch = '' - substituteInPlace src/org.btrfs-assistant.pkexec.policy \ - --replace '/usr/bin' "$out/bin" - - substituteInPlace src/btrfs-assistant \ - --replace 'btrfs-assistant-bin' "$out/bin/btrfs-assistant-bin" - - substituteInPlace src/btrfs-assistant-launcher \ - --replace 'btrfs-assistant' "$out/bin/btrfs-assistant" - '' - + lib.optionalString enableSnapper '' - substituteInPlace src/btrfs-assistant.conf \ - --replace '/usr/bin/snapper' "${lib.getExe snapper}" - ''; - - qtWrapperArgs = - let - runtimeDeps = lib.makeBinPath ([ - coreutils - util-linux - ] - ++ lib.optionals enableSnapper [ snapper ]); - in - [ - "--prefix PATH : ${runtimeDeps}" - ]; - - passthru.updateScript = nix-update-script { }; - - meta = { - description = "A GUI management tool to make managing a Btrfs filesystem easier"; - homepage = "https://gitlab.com/btrfs-assistant/btrfs-assistant"; - license = lib.licenses.gpl3Only; - mainProgram = "btrfs-assistant-bin"; - maintainers = with lib.maintainers; [ khaneliman ]; - platforms = lib.platforms.linux; - }; -}) |