@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, xrdb }:
2+
3+stdenv.mkDerivation {
4+ name = "urxvt-font-size-2015-05-22";
5+ dontPatchShebangs = true;
6+
7+ src = fetchFromGitHub {
8+ owner = "majutsushi";
9+ repo = "urxvt-font-size";
10+ rev = "fd5b09c10798c6723bbf771d4d8881cf6563bc69";
11+ sha256 = "16m3kkypg3y00x597zx05zy167a0kaqpawz0l591wzb2bv1dz55z";
12+ };
13+
14+ installPhase = ''
15+ substituteInPlace font-size \
16+ --replace "xrdb -merge" "${xrdb}/bin/xrdb -merge"
17+
18+ mkdir -p $out/lib/urxvt/perl
19+ cp font-size $out/lib/urxvt/perl
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "Change the urxvt font size on the fly";
24+ homepage = "https://github.com/majutsushi/urxvt-font-size";
25+ license = licenses.mit;
26+ maintainers = with maintainers; [ cstrahan ];
27+ };
28+}