nixpkgs/pkgs/os-specific/linux/compsize/default.nix

31 lines
786 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, btrfs-progs }:
2018-05-12 23:10:36 +01:00
stdenv.mkDerivation rec {
2019-05-05 11:03:33 +01:00
pname = "compsize";
2021-02-10 00:59:14 +00:00
version = "1.5";
2018-05-12 23:10:36 +01:00
src = fetchFromGitHub {
owner = "kilobyte";
2021-01-21 11:11:51 +00:00
repo = pname;
2019-05-05 11:03:33 +01:00
rev = "v${version}";
2021-02-10 00:59:14 +00:00
sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8=";
2018-05-12 23:10:36 +01:00
};
buildInputs = [ btrfs-progs ];
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man8
install -m 0755 compsize $out/bin
install -m 0444 compsize.8 $out/share/man/man8
'';
meta = with lib; {
2018-05-12 23:10:36 +01:00
description = "btrfs: Find compression type/ratio on a file or set of files";
homepage = "https://github.com/kilobyte/compsize";
2021-02-10 02:49:56 +00:00
license = licenses.gpl2Plus;
2018-05-12 23:10:36 +01:00
maintainers = with maintainers; [ CrazedProgrammer ];
platforms = platforms.linux;
};
}