summary refs log tree commit diff
path: root/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-font-size/default.nix
blob: eafa0d6d18b8e10124d1f38549f2e5fb4fcc8748 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub, xrdb }:

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 \
      --replace "xrdb -merge" "${xrdb}/bin/xrdb -merge"

    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";
    homepage = "https://github.com/majutsushi/urxvt-font-size";
    license = licenses.mit;
    maintainers = with maintainers; [ cstrahan ];
  };
}