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
43
pkgs/development/libraries/libagar/default.nix
Normal file
43
pkgs/development/libraries/libagar/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, libtool, perl, bsdbuild, gettext, mandoc
|
||||
, libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU, libGL
|
||||
, libsndfile, portaudio, libmysqlclient, fontconfig
|
||||
}:
|
||||
|
||||
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
||||
stdenv.mkDerivation {
|
||||
pname = "libagar";
|
||||
inherit (srcs) version src;
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace configure.in \
|
||||
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
|
||||
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-libtool=${libtool}/bin/libtool"
|
||||
"--enable-nls=yes"
|
||||
"--with-gettext=${gettext}"
|
||||
"--with-jpeg=${libjpeg.dev}"
|
||||
"--with-gl=${libGL}"
|
||||
"--with-mysql=${libmysqlclient}"
|
||||
"--with-manpages=yes"
|
||||
];
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config libtool gettext ];
|
||||
|
||||
buildInputs = [
|
||||
bsdbuild perl xlibsWrapper libXinerama SDL libGL libmysqlclient mandoc
|
||||
freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform GUI toolkit";
|
||||
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