diff options
author | Felix Buehler <account@buehler.rocks> | 2021-12-01 13:46:39 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-12-05 15:38:17 +0100 |
commit | 8d0267dc8f02e010785d6f90573ea1135b7957e7 (patch) | |
tree | 9987a4f25d9c939dab4544a74a8a454469ce16b2 /pkgs/tools/filesystems/hfsprogs | |
parent | af6071db609bdf86f5d36f0bc4a4ac0fe8e92c35 (diff) |
treewide: use pname&version instead of name
Diffstat (limited to 'pkgs/tools/filesystems/hfsprogs')
-rw-r--r-- | pkgs/tools/filesystems/hfsprogs/default.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/tools/filesystems/hfsprogs/default.nix b/pkgs/tools/filesystems/hfsprogs/default.nix index 8a2a8572b5ca7..877d95c5b3d90 100644 --- a/pkgs/tools/filesystems/hfsprogs/default.nix +++ b/pkgs/tools/filesystems/hfsprogs/default.nix @@ -1,12 +1,11 @@ { lib, stdenv, fetchurl, openssl, libbsd }: -let version = "332.25"; - package_name = "hfsprogs"; in -stdenv.mkDerivation { - name = "${package_name}-${version}"; +stdenv.mkDerivation rec { + version = "332.25"; + pname = "hfsprogs"; srcs = [ (fetchurl { - url = "http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/${package_name}_${version}-11.debian.tar.gz"; + url = "http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_${version}-11.debian.tar.gz"; sha256 = "62d9b8599c66ebffbc57ce5d776e20b41341130d9b27341d63bda08460ebde7c"; }) (fetchurl { @@ -29,13 +28,13 @@ stdenv.mkDerivation { installPhase = '' # Create required package directories install -m 755 -d "$out/bin" - install -m 755 -d "$out/share/${package_name}" + install -m 755 -d "$out/share/hfsprogs" install -m 755 -d "$out/share/man/man8/" # Copy executables install -m 755 "newfs_hfs.tproj/newfs_hfs" "$out/bin/mkfs.hfsplus" install -m 755 "fsck_hfs.tproj/fsck_hfs" "$out/bin/fsck.hfsplus" # Copy shared data - install -m 644 "newfs_hfs.tproj/hfsbootdata.img" "$out/share/${package_name}/hfsbootdata" + install -m 644 "newfs_hfs.tproj/hfsbootdata.img" "$out/share/hfsprogs/hfsbootdata" # Copy man pages install -m 644 "newfs_hfs.tproj/newfs_hfs.8" "$out/share/man/man8/mkfs.hfsplus.8" install -m 644 "fsck_hfs.tproj/fsck_hfs.8" "$out/share/man/man8/fsck.hfsplus.8" |