termite: make it possible to provide a configuration file for termite
also added myself as a maintainer
This commit is contained in:
parent
76222c10d5
commit
348ae8f6ec
@ -1,8 +1,11 @@
|
|||||||
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses }:
|
{ stdenv, fetchgit, pkgconfig, vte, gtk3, ncurses, makeWrapper
|
||||||
|
, configFile ? null
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "termite-${version}";
|
|
||||||
version = "11";
|
version = "11";
|
||||||
|
termite = stdenv.mkDerivation {
|
||||||
|
name = "termite-${version}";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/thestinger/termite";
|
url = "https://github.com/thestinger/termite";
|
||||||
@ -28,7 +31,17 @@ stdenv.mkDerivation rec {
|
|||||||
description = "A simple VTE-based terminal";
|
description = "A simple VTE-based terminal";
|
||||||
license = licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
homepage = https://github.com/thestinger/termite/;
|
homepage = https://github.com/thestinger/termite/;
|
||||||
maintainers = [ maintainers.koral ];
|
maintainers = with matinainers; [ koral garbas ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
in if configFile == null then termite else stdenv.mkDerivation {
|
||||||
|
name = "termite-with-config-${version}";
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
buildCommand = ''
|
||||||
|
mkdir -p $out/etc/xdg/termite/ $out/bin
|
||||||
|
ln -s ${termite}/bin/termite $out/bin/termite
|
||||||
|
wrapProgram $out/bin/termite --add-flags "--config ${configFile}"
|
||||||
|
'';
|
||||||
|
passthru.terminfo = termite.terminfo;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user