summary refs log tree commit diff
path: root/pkgs/applications/misc/rxvt-unicode-plugins/urxvt-theme-switch/default.nix
blob: ba8ec3a6e72ab4bc20539f30035cc4045d6faadd (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 }:

stdenv.mkDerivation rec {
  rev = "cfcbcc3dd5a5b09a3fec0f6a1fea95f4a36a48c4";
  name = "urxvt-theme-switch-2014-12-21_rev${builtins.substring 0 1 rev}";
  dontPatchShebangs = true;

  src = fetchFromGitHub {
    owner = "felixr";
    repo = "urxvt-theme-switch";
    inherit rev;
    sha256 = "0x27m1vdqprn3lqpwgxvffill7prmaj6j9rhgvkvi13mzl5wmlli";
  };

  installPhase = ''
    mkdir -p $out/lib/urxvt/perl
    sed -i -e "s|/usr/bin/env||" color-themes
    cp color-themes $out/lib/urxvt/perl
  '';

  meta = with stdenv.lib; {
    description = "urxvt plugin that allows to switch color themes during runtime";
    homepage = https://github.com/felixr/urxvt-theme-switch;
    license = "CCBYNC";
    maintainers = with maintainers; [ ];
    platforms = with platforms; unix;
  };
}