From 3afa315b1bad7429cb1626ffdaacc53d784d6fbe Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Mon, 6 Jun 2022 09:30:42 +1000 Subject: [PATCH] afsctool: init at 1.7.0 --- pkgs/tools/filesystems/afsctool/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/filesystems/afsctool/default.nix diff --git a/pkgs/tools/filesystems/afsctool/default.nix b/pkgs/tools/filesystems/afsctool/default.nix new file mode 100644 index 000000000000..303ec05bf834 --- /dev/null +++ b/pkgs/tools/filesystems/afsctool/default.nix @@ -0,0 +1,33 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, cmake +, git +, zlib +, sparsehash +, CoreServices +}: + +stdenv.mkDerivation rec { + pname = "afsctool"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "RJVB"; + repo = pname; + rev = version; + hash = "sha256-rqca7gpH46hk4MEPMHqYnteYJnGpLS/gu4XP7xWqDzo="; + }; + + nativeBuildInputs = [ pkg-config cmake git ]; + buildInputs = [ zlib sparsehash CoreServices ]; + + meta = with lib; { + description = "Utility that allows end-users to leverage HFS+/APFS compression"; + license = licenses.unfree; + maintainers = [ maintainers.viraptor ]; + platforms = platforms.darwin; + homepage = "https://github.com/RJVB/afsctool"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7eedb84359bc..accd4df049e7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1049,6 +1049,10 @@ with pkgs; afpfs-ng = callPackage ../tools/filesystems/afpfs-ng { }; + afsctool = callPackage ../tools/filesystems/afsctool { + inherit (darwin.apple_sdk.frameworks) CoreServices; + }; + agate = callPackage ../servers/gemini/agate { inherit (darwin.apple_sdk.frameworks) Security; };