lol
at 23.05-pre 48 lines 1.3 kB view raw
1{ lib, stdenv, fetchurl, makeWrapper 2, pkg-config, openssl, fuse, libxml2 3, cabextract ? null 4, cdrkit ? null 5, mtools ? null 6, ntfs3g ? null 7, syslinux ? null 8}: 9 10stdenv.mkDerivation rec { 11 version = "1.13.6"; 12 pname = "wimlib"; 13 14 nativeBuildInputs = [ pkg-config makeWrapper ]; 15 buildInputs = [ openssl fuse libxml2 ntfs3g ]; 16 17 src = fetchurl { 18 url = "https://wimlib.net/downloads/${pname}-${version}.tar.gz"; 19 sha256 = "sha256-Cg+cHA06KnZkVTWusPYuA/xVkUymXzpNVZm7iwJg29k="; 20 }; 21 22 preBuild = lib.optionalString (!stdenv.isDarwin) '' 23 substituteInPlace programs/mkwinpeimg.in \ 24 --replace '/usr/lib/syslinux' "${syslinux}/share/syslinux" 25 ''; 26 27 postInstall = let 28 path = lib.makeBinPath ([ cabextract mtools ntfs3g ] ++ lib.optionals (!stdenv.isDarwin) [ cdrkit syslinux ]); 29 in '' 30 for prog in $out/bin/*; do 31 wrapProgram $prog --prefix PATH : ${path} 32 done 33 ''; 34 35 doCheck = (!stdenv.isDarwin); 36 37 preCheck = '' 38 patchShebangs tests 39 ''; 40 41 meta = with lib; { 42 homepage = "https://wimlib.net"; 43 description = "A library and program to extract, create, and modify WIM files"; 44 platforms = platforms.unix; 45 maintainers = with maintainers; [ ]; 46 license = with licenses; [ gpl3 lgpl3 cc0 ]; 47 }; 48}