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
37
pkgs/development/libraries/sqlite/sqlar.nix
Normal file
37
pkgs/development/libraries/sqlite/sqlar.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchurl, fuse, zlib
|
||||
, withFuse ? true }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "sqlar";
|
||||
version = "2018-01-07";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.sqlite.org/sqlar/tarball/4824e73896/sqlar-src-4824e73896.tar.gz";
|
||||
sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
||||
'';
|
||||
|
||||
buildInputs = [ zlib ]
|
||||
++ lib.optional withFuse fuse;
|
||||
|
||||
buildFlags = [ "CFLAGS=-Wno-error" "sqlar" ]
|
||||
++ lib.optional withFuse "sqlarfs";
|
||||
|
||||
installPhase = ''
|
||||
install -D -t $out/bin sqlar
|
||||
'' + lib.optionalString withFuse ''
|
||||
install -D -t $out/bin sqlarfs
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://sqlite.org/sqlar";
|
||||
description = "SQLite Archive utilities";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue