summary refs log tree commit diff
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2015-07-04 03:17:42 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2015-07-04 03:17:52 -0400
commit737de61912fbf4e654819c3c39786ac5bffa3048 (patch)
treea3955fc0f5835fe1c752cee6650277fc168519de
parentf3bd64120392a63c14de512f06adc2284e10c617 (diff)
downloadnixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.tar
nixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.tar.gz
nixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.tar.bz2
nixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.tar.lz
nixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.tar.xz
nixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.tar.zst
nixpkgs-737de61912fbf4e654819c3c39786ac5bffa3048.zip
urxvt-font-size: init
-rw-r--r--pkgs/applications/misc/rxvt_unicode-plugins/urxvt-font-size/default.nix28
-rw-r--r--pkgs/top-level/all-packages.nix3
2 files changed, 30 insertions, 1 deletions
diff --git a/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-font-size/default.nix b/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-font-size/default.nix
new file mode 100644
index 00000000000..eafa0d6d18b
--- /dev/null
+++ b/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-font-size/default.nix
@@ -0,0 +1,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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 1cfa21807c5..33f54b7de86 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12461,9 +12461,10 @@ let
   # urxvt plugins
   urxvt_perls = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-perls { };
   urxvt_tabbedex = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-tabbedex { };
+  urxvt_font_size = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-font-size { };
 
   rxvt_unicode-with-plugins = callPackage ../applications/misc/rxvt_unicode/wrapper.nix {
-    plugins = [ urxvt_perls urxvt_tabbedex ];
+    plugins = [ urxvt_perls urxvt_tabbedex urxvt_font_size ];
   };
 
   # FIXME: remove somewhere in future