@@ -0,0 +1,27 @@
1+{ stdenv, fetchgit, perl }:
2+
3+stdenv.mkDerivation {
4+
5+ name = "rxvt_unicode-vtwheel-0.3.2";
6+
7+ src = fetchgit {
8+ url = "https://aur.archlinux.org/urxvt-vtwheel.git";
9+ rev = "36d3e861664aeae36a45f96100f10f8fe2218035";
10+ sha256 = "1h3vrsbli5q9kr84j5ijbivlhpwlh3l8cv233pg362v2zz4ja8i7";
11+ };
12+
13+ installPhase = ''
14+ sed -i 's|#! perl|#! ${perl}/bin/perl|g' vtwheel
15+ mkdir -p $out/lib/urxvt/perl
16+ cp vtwheel $out/lib/urxvt/perl
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ description = "Pass mouse wheel commands to secondary screens (screen, less, nano, etc)";
21+ homepage = "https://aur.archlinux.org/packages/urxvt-vtwheel";
22+ license = licenses.mit;
23+ maintainers = with maintainers; [ danbst ];
24+ platforms = with platforms; unix;
25+ };
26+
27+}