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
44
pkgs/development/libraries/libconfuse/default.nix
Normal file
44
pkgs/development/libraries/libconfuse/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, flex }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libconfuse";
|
||||
version = "3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "1npfk5jv59kk4n8pkyx89fn9s6p8x3gbffs42jaw24frgxfgp8ca";
|
||||
rev = "v${version}";
|
||||
repo = "libconfuse";
|
||||
owner = "martinh";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/Makefile.am \
|
||||
--replace 'TESTS += empty_string' "" \
|
||||
--replace 'TESTS += print_filter' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook flex ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# On darwin the tests depend on the installed libraries because of install_name.
|
||||
doInstallCheck = true;
|
||||
installCheckTarget = "check";
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "Small configuration file parser library for C";
|
||||
longDescription = ''
|
||||
libConfuse (previously libcfg) is a configuration file parser library
|
||||
written in C. It supports sections and (lists of) values, as well as
|
||||
some other features. It makes it very easy to add configuration file
|
||||
capability to a program using a simple API.
|
||||
|
||||
The goal of libConfuse is not to be the configuration file parser library
|
||||
with a gazillion of features. Instead, it aims to be easy to use and
|
||||
quick to integrate with your code.
|
||||
'';
|
||||
license = licenses.isc;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue