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
69
pkgs/development/libraries/libgpod/default.nix
Normal file
69
pkgs/development/libraries/libgpod/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, perlPackages
|
||||
, intltool
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, glib
|
||||
, libxml2
|
||||
, sqlite
|
||||
, zlib
|
||||
, sg3_utils
|
||||
, gdk-pixbuf
|
||||
, taglib
|
||||
, libimobiledevice
|
||||
, monoSupport ? false
|
||||
, mono
|
||||
, gtk-sharp-2_0
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libgpod";
|
||||
version = "0.8.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gtkpod/libgpod-${version}.tar.bz2";
|
||||
sha256 = "0pcmgv1ra0ymv73mlj4qxzgyir026z9jpl5s5bkg35afs1cpk2k3";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postPatch = ''
|
||||
# support libplist 2.2
|
||||
substituteInPlace configure.ac --replace 'libplist >= 1.0' 'libplist-2.0 >= 2.2'
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--without-hal"
|
||||
"--enable-udev"
|
||||
"--with-udev-dir=${placeholder "out"}/lib/udev"
|
||||
] ++ lib.optionals monoSupport [ "--with-mono" ];
|
||||
|
||||
dontStrip = monoSupport;
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook intltool pkg-config ]
|
||||
++ (with perlPackages; [ perl XMLParser ])
|
||||
++ lib.optional monoSupport mono;
|
||||
|
||||
buildInputs = [
|
||||
libxml2
|
||||
sg3_utils
|
||||
sqlite
|
||||
taglib
|
||||
] ++ lib.optional monoSupport gtk-sharp-2_0;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gdk-pixbuf
|
||||
glib
|
||||
libimobiledevice
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://sourceforge.net/projects/gtkpod/";
|
||||
description = "Library used by gtkpod to access the contents of an ipod";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue