forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
30 lines
872 B
Nix
30 lines
872 B
Nix
{ lib, stdenv, fetchurl, fetchpatch, pkgconfig, gtk2, gettext, libxml2, intltool, libart_lgpl
|
|
, libgnomecups, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libgnomeprint-2.18.8";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libgnomeprint/2.18/${name}.tar.bz2";
|
|
sha256 = "1034ec8651051f84d2424e7a1da61c530422cc20ce5b2d9e107e1e46778d9691";
|
|
};
|
|
|
|
patches = [
|
|
./bug653388.patch
|
|
# Fix compatibility with bison 3
|
|
(fetchpatch {
|
|
url = "https://github.com/pld-linux/libgnomeprint/raw/54c0f9c3675b86c53f6d77a5bc526ce9ef0e38cd/bison3.patch";
|
|
sha256 = "1sp04jbv34i1gcwf377hhmwdsmqzig70dd06rjz1isb6zwh4y01l";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ gtk2 gettext intltool libart_lgpl libgnomecups bison flex ];
|
|
|
|
propagatedBuildInputs = [ libxml2 ];
|
|
|
|
meta = with lib; {
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|