Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, btrfs-progs }: 2 3stdenv.mkDerivation rec { 4 pname = "compsize"; 5 version = "1.5"; 6 7 src = fetchFromGitHub { 8 owner = "kilobyte"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-OX41ChtHX36lVRL7O2gH21Dfw6GPPEClD+yafR/PFm8="; 12 }; 13 14 buildInputs = [ btrfs-progs ]; 15 16 installFlags = [ 17 "PREFIX=${placeholder "out"}" 18 ]; 19 20 preInstall = '' 21 mkdir -p $out/share/man/man8 22 ''; 23 24 meta = with lib; { 25 description = "btrfs: Find compression type/ratio on a file or set of files"; 26 homepage = "https://github.com/kilobyte/compsize"; 27 license = licenses.gpl2Plus; 28 maintainers = with maintainers; [ CrazedProgrammer ]; 29 platforms = platforms.linux; 30 }; 31}