Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 993 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cpio, 6 e2fsprogs, 7 perl, 8 pkg-config, 9 ocamlPackages, 10 glibc, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "supermin"; 15 version = "5.2.2"; 16 17 src = fetchurl { 18 url = "https://download.libguestfs.org/supermin/${lib.versions.majorMinor finalAttrs.version}-stable/supermin-${finalAttrs.version}.tar.gz"; 19 sha256 = "zjkh02NcgWjPt8oMWoK51c71srJx+Et3bWO4u77sNY4="; 20 }; 21 22 nativeBuildInputs = [ 23 cpio 24 e2fsprogs 25 perl 26 pkg-config 27 ] 28 ++ (with ocamlPackages; [ 29 findlib 30 ocaml 31 ]); 32 buildInputs = lib.optionals stdenv.hostPlatform.isGnu [ 33 glibc 34 glibc.static 35 ]; 36 37 postPatch = '' 38 patchShebangs src/bin2c.pl 39 ''; 40 41 meta = with lib; { 42 homepage = "https://libguestfs.org/supermin.1.html"; 43 description = "Tool for creating and building supermin appliances"; 44 maintainers = with maintainers; [ qyliss ]; 45 license = licenses.gpl2Plus; 46 platforms = platforms.linux; 47 mainProgram = "supermin"; 48 }; 49})