forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
29 lines
814 B
Nix
29 lines
814 B
Nix
{ lib, 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 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;
|
|
};
|
|
}
|