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
39
pkgs/development/libraries/libpaper/default.nix
Normal file
39
pkgs/development/libraries/libpaper/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.1.28";
|
||||
pname = "libpaper";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/libp/libpaper/libpaper_${version}.tar.gz";
|
||||
sha256 = "sha256-yLuUbsk9PCxyu7HXJX6QFyoipEoHoH+2uAKluyyV/dw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
# The configure script of libpaper is buggy: it uses AC_SUBST on a headerfile
|
||||
# to compile sysconfdir into the library. Autoconf however defines sysconfdir
|
||||
# as "${prefix}/etc", which is not expanded by AC_SUBST so libpaper will look
|
||||
# for config files in (literally, without expansion) '${prefix}/etc'. Manually
|
||||
# setting sysconfdir fixes this issue.
|
||||
preConfigure = ''
|
||||
configureFlagsArray+=(
|
||||
"--sysconfdir=$out/etc"
|
||||
)
|
||||
'';
|
||||
|
||||
# Set the default paper to letter (this is what libpaper uses as default as well,
|
||||
# if you call getdefaultpapername()).
|
||||
# The user can still override this with the PAPERCONF environment variable.
|
||||
postInstall = ''
|
||||
mkdir -p $out/etc
|
||||
echo letter > $out/etc/papersize
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Library for handling paper characteristics";
|
||||
homepage = "http://packages.debian.org/unstable/source/libpaper";
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue