Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 e2fsprogs, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "e2tools"; 12 version = "0.1.2"; 13 14 src = fetchFromGitHub { 15 owner = "e2tools"; 16 repo = "e2tools"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-h5Asz3bG1zMOwJBLWZY0NBLRB3W8+6va6MkuOQvCuAc="; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 pkg-config 24 ]; 25 26 buildInputs = [ e2fsprogs ]; 27 28 enableParallelBuilding = true; 29 30 meta = { 31 homepage = "https://e2tools.github.io/"; 32 description = "Utilities to read/write/manipulate files in an ext2/ext3 filesystem"; 33 license = lib.licenses.gpl2Only; 34 platforms = lib.platforms.linux; 35 maintainers = [ lib.maintainers.leenaars ]; 36 }; 37})