mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
31 lines
786 B
Nix
31 lines
786 B
Nix
{ lib, stdenv, fetchFromGitHub, btrfs-progs }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "compsize";
|
|
version = "1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kilobyte";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8=";
|
|
};
|
|
|
|
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; {
|
|
description = "btrfs: Find compression type/ratio on a file or set of files";
|
|
homepage = "https://github.com/kilobyte/compsize";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ CrazedProgrammer ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|