2016-07-15 13:21:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, xrdb, xlsfonts }:
|
2015-07-04 08:17:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "urxvt-font-size-2015-05-22";
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "majutsushi";
|
|
|
|
repo = "urxvt-font-size";
|
|
|
|
rev = "fd5b09c10798c6723bbf771d4d8881cf6563bc69";
|
|
|
|
sha256 = "16m3kkypg3y00x597zx05zy167a0kaqpawz0l591wzb2bv1dz55z";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
substituteInPlace font-size \
|
2016-07-15 13:21:54 +01:00
|
|
|
--replace "xrdb -merge" "${xrdb}/bin/xrdb -merge" \
|
|
|
|
--replace "xlsfonts" "${xlsfonts}/bin/xlsfonts"
|
2015-07-04 08:17:42 +01:00
|
|
|
|
|
|
|
mkdir -p $out/lib/urxvt/perl
|
|
|
|
cp font-size $out/lib/urxvt/perl
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Change the urxvt font size on the fly";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/majutsushi/urxvt-font-size";
|
2015-07-04 08:17:42 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2015-07-04 08:17:42 +01:00
|
|
|
};
|
|
|
|
}
|