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
51
pkgs/development/libraries/ldns/default.nix
Normal file
51
pkgs/development/libraries/ldns/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, stdenv, fetchurl, openssl, perl, which, dns-root-data }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ldns";
|
||||
version = "1.8.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.nlnetlabs.nl/downloads/ldns/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-lYIpq85NOqoZp1wNEnZmVksXIWkCGG6VLKSu9Hxtf6M=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs doc/doxyparse.pl
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "man" "examples" ];
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-ssl=${openssl.dev}"
|
||||
"--with-trust-anchor=${dns-root-data}/root.key"
|
||||
"--with-drill"
|
||||
"--disable-gost"
|
||||
"--with-examples"
|
||||
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
"ac_cv_func_malloc_0_nonnull=yes"
|
||||
"ac_cv_func_realloc_0_nonnull=yes"
|
||||
];
|
||||
|
||||
checkInputs = [ which ];
|
||||
doCheck = false; # fails. missing some files
|
||||
|
||||
postInstall = ''
|
||||
# Only 'drill' stays in $out
|
||||
# the rest are examples:
|
||||
moveToOutput "bin/ldns*" "$examples"
|
||||
# with exception of ldns-config, which goes to $dev:
|
||||
moveToOutput "bin/ldns-config" "$dev"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library with the aim of simplifying DNS programming in C";
|
||||
homepage = "http://www.nlnetlabs.nl/projects/ldns/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
mainProgram = "drill";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue