Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, perl, fuse }: 2 3stdenv.mkDerivation rec { 4 version = "0.7"; 5 pname = "chunkfs"; 6 7 src = fetchurl { 8 url = "https://chunkfs.florz.de/chunkfs_${version}.tar.gz"; 9 sha256 = "4c168fc2b265a6ba34afc565707ea738f34375325763c0596f2cfa1c9b8d40f1"; 10 }; 11 12 buildInputs = [perl fuse]; 13 14 makeFlags = [ 15 "DESTDIR=$(out)" 16 "PREFIX=" 17 ]; 18 19 preInstall = '' 20 mkdir -p $out/bin 21 mkdir -p $out/share/man/man1 22 ''; 23 24 meta = { 25 description = "FUSE filesystems for viewing chunksync-style directory trees as a block device and vice versa"; 26 homepage = "http://chunkfs.florz.de/"; 27 license = lib.licenses.gpl2; 28 platforms = with lib.platforms; linux; 29 }; 30}