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
39 lines
1007 B
Nix
39 lines
1007 B
Nix
{ lib, stdenv, fetchgit, makeWrapper, pkgconfig,
|
|
gnome2, glib, pango, cairo, gdk-pixbuf, atk, freetype, xorg,
|
|
configH ? ""
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "evilvte";
|
|
version = "0.5.2-20140827";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/caleb-/evilvte.git";
|
|
rev = "8dfa41e26bc640dd8d8c7317ff7d04e3c01ded8a";
|
|
sha256 = "70f1d4234d077121e2223a735d749d1b53f0b84393507b635b8a37c3716e94d3";
|
|
};
|
|
|
|
buildInputs = [
|
|
gnome2.vte glib pango gnome2.gtk cairo gdk-pixbuf atk freetype xorg.libX11
|
|
xorg.xorgproto xorg.libXext makeWrapper pkgconfig
|
|
];
|
|
|
|
buildPhase = ''
|
|
cat >src/config.h <<EOF
|
|
${configH}
|
|
EOF
|
|
make
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "VTE based, highly customizable terminal emulator";
|
|
homepage = "http://www.calno.com/evilvte";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.bodil ];
|
|
platforms = platforms.linux;
|
|
knownVulnerabilities = [
|
|
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854585"
|
|
];
|
|
};
|
|
}
|