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
34
pkgs/development/libraries/libagar/libagar_test.nix
Normal file
34
pkgs/development/libraries/libagar/libagar_test.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
|
||||
|
||||
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
||||
stdenv.mkDerivation {
|
||||
pname = "libagar-test";
|
||||
inherit (srcs) version src;
|
||||
|
||||
sourceRoot = "agar-1.5.0/tests";
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: textdlg.o:(.bss+0x0): multiple definition of `someString';
|
||||
# configsettings.o:(.bss+0x0): first defined here
|
||||
# TODO: the workaround can be removed once nixpkgs updates to 1.6.0.
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace configure.in \
|
||||
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
|
||||
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-agar=${libagar}" ];
|
||||
|
||||
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
description = "Tests for libagar";
|
||||
homepage = "http://libagar.org/index.html";
|
||||
license = with licenses; bsd3;
|
||||
maintainers = with maintainers; [ ramkromberg ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue