biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / filesystems / hfsprogs / default.nix
blob17b787b08b83cc0f1a31256e6a176c01739cf5fe
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   libbsd,
6   libuuid,
7   openssl,
8 }:
9 stdenv.mkDerivation rec {
10   pname = "hfsprogs";
11   version = "627.40.1-linux";
13   src = fetchFromGitHub {
14     owner = "glaubitz";
15     repo = "hfs";
16     rev = "a9496556b0a5fa805139ea20b44081d48aae912a";
17     hash = "sha256-i6fXPWHU03ErUN2irP2cLJbpqi1OrTtcQE+ohAz+Eio=";
18   };
20   buildInputs = [
21     libbsd
22     libuuid
23     openssl
24   ];
26   installPhase = ''
27     # Copy executables
28     install -Dm 555 "newfs_hfs/newfs_hfs" "$out/bin/mkfs.hfsplus"
29     install -Dm 555 "fsck_hfs/fsck_hfs" "$out/bin/fsck.hfsplus"
30     # Copy man pages
31     install -Dm 444 "newfs_hfs/newfs_hfs.8" "$out/share/man/man8/mkfs.hfsplus.8"
32     install -Dm 444 "fsck_hfs/fsck_hfs.8" "$out/share/man/man8/fsck.hfsplus.8"
33   '';
35   meta = {
36     description = "HFS/HFS+ user space utils";
37     license = lib.licenses.apple-psl20;
38     platforms = lib.platforms.linux;
39   };