mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
e6afc78965
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/wimlib/versions
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ stdenv, fetchurl, makeWrapper
|
|
, pkgconfig, openssl, fuse, libxml2
|
|
, cabextract ? null
|
|
, cdrkit ? null
|
|
, mtools ? null
|
|
, ntfs3g ? null
|
|
, syslinux ? null
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.13.0";
|
|
name = "wimlib-${version}";
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
buildInputs = [ openssl fuse libxml2 ntfs3g ];
|
|
|
|
src = fetchurl {
|
|
url = "https://wimlib.net/downloads/${name}.tar.gz";
|
|
sha256 = "02wpsxjlw9vysj6x6q7kmvbcdkpvdzw201mmj5x0q670mapjrnai";
|
|
};
|
|
|
|
preBuild = ''
|
|
substituteInPlace programs/mkwinpeimg.in \
|
|
--replace '/usr/lib/syslinux' "${syslinux}/share/syslinux"
|
|
'';
|
|
|
|
postInstall = let
|
|
path = stdenv.lib.makeBinPath [ cabextract cdrkit mtools ntfs3g syslinux ];
|
|
in ''
|
|
for prog in $out/bin/*; do
|
|
wrapProgram $prog --prefix PATH : ${path}
|
|
done
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
patchShebangs tests
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://wimlib.net;
|
|
description = "A library and program to extract, create, and modify WIM files";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ andir ];
|
|
license = with licenses; [ gpl3 lgpl3 cc0 ];
|
|
};
|
|
}
|