wimlib: nitpicks
This commit is contained in:
parent
40180335a9
commit
32ce470720
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, pkgs, makeWrapper, bash
|
{ stdenv, fetchurl, makeWrapper
|
||||||
|
, pkgconfig, openssl, fuse, libxml2
|
||||||
, cabextract ? null
|
, cabextract ? null
|
||||||
, cdrkit ? null
|
, cdrkit ? null
|
||||||
, mtools ? null
|
, mtools ? null
|
||||||
@ -10,37 +11,34 @@ stdenv.mkDerivation rec {
|
|||||||
version = "1.12.0";
|
version = "1.12.0";
|
||||||
name = "wimlib-${version}";
|
name = "wimlib-${version}";
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ pkgconfig makeWrapper ];
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
||||||
buildInputs = with pkgs; [ openssl fuse libxml2 ntfs3g ];
|
buildInputs = [ openssl fuse libxml2 ntfs3g ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://wimlib.net/downloads/${name}.tar.gz";
|
url = "https://wimlib.net/downloads/${name}.tar.gz";
|
||||||
sha256 = "852cf59d682a91974f715f09fa98cab621b740226adcfea7a42360be0f86464f";
|
sha256 = "852cf59d682a91974f715f09fa98cab621b740226adcfea7a42360be0f86464f";
|
||||||
};
|
};
|
||||||
|
|
||||||
prefixPackages = [ cabextract cdrkit mtools ntfs3g syslinux ];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace programs/mkwinpeimg.in --replace '/usr/lib/syslinux' "${syslinux}/share/syslinux"
|
substituteInPlace programs/mkwinpeimg.in \
|
||||||
|
--replace '/usr/lib/syslinux' "${syslinux}/share/syslinux"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = let
|
||||||
|
path = stdenv.lib.makeBinPath [ cabextract cdrkit mtools ntfs3g syslinux ];
|
||||||
|
in ''
|
||||||
for prog in $out/bin/*; do
|
for prog in $out/bin/*; do
|
||||||
wrapProgram $prog --prefix PATH : ${lib.makeBinPath prefixPackages}
|
wrapProgram $prog --prefix PATH : ${path}
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
patchShebangs tests/
|
patchShebangs tests
|
||||||
for testfile in tests/test-*; do
|
|
||||||
wrapProgram $testfile --prefix PATH : ${lib.makeBinPath prefixPackages}
|
|
||||||
done
|
|
||||||
make check
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://wimlib.net;
|
homepage = https://wimlib.net;
|
||||||
description = "A library and program to extract, create, and modify WIM files";
|
description = "A library and program to extract, create, and modify WIM files";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
Loading…
Reference in New Issue
Block a user