uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
48
pkgs/tools/archivers/wimlib/default.nix
Normal file
48
pkgs/tools/archivers/wimlib/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper
|
||||
, pkg-config, openssl, fuse, libxml2
|
||||
, cabextract ? null
|
||||
, cdrkit ? null
|
||||
, mtools ? null
|
||||
, ntfs3g ? null
|
||||
, syslinux ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.13.5";
|
||||
pname = "wimlib";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ openssl fuse libxml2 ntfs3g ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://wimlib.net/downloads/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-MvzJ6bFEt8sdtMhuEEyngoPNwiXhP+grJzZgWGrv4yM=";
|
||||
};
|
||||
|
||||
preBuild = lib.optionalString (!stdenv.isDarwin) ''
|
||||
substituteInPlace programs/mkwinpeimg.in \
|
||||
--replace '/usr/lib/syslinux' "${syslinux}/share/syslinux"
|
||||
'';
|
||||
|
||||
postInstall = let
|
||||
path = lib.makeBinPath ([ cabextract mtools ntfs3g ] ++ lib.optionals (!stdenv.isDarwin) [ cdrkit syslinux ]);
|
||||
in ''
|
||||
for prog in $out/bin/*; do
|
||||
wrapProgram $prog --prefix PATH : ${path}
|
||||
done
|
||||
'';
|
||||
|
||||
doCheck = (!stdenv.isDarwin);
|
||||
|
||||
preCheck = ''
|
||||
patchShebangs tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://wimlib.net";
|
||||
description = "A library and program to extract, create, and modify WIM files";
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ ];
|
||||
license = with licenses; [ gpl3 lgpl3 cc0 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue