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
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "onestepback";
|
|
version = "0.991";
|
|
|
|
srcs = [
|
|
(fetchurl {
|
|
url = "http://www.vide.memoire.free.fr/perso/OneStepBack/OneStepBack-v${version}.zip";
|
|
sha256 = "1jfgcgzbb6ra9qs3zcp6ij0hfldzg3m0yjw6l6vf4kq1mdby1ghm";
|
|
})
|
|
(fetchurl {
|
|
url = "http://www.vide.memoire.free.fr/perso/OneStepBack/OneStepBack-grey-brown-green-blue-v${version}.zip";
|
|
sha256 = "0i006h1asbpfdzajws0dvk9acplvcympzgxq5v3n8hmizd6yyh77";
|
|
})
|
|
(fetchurl {
|
|
url = "http://www.vide.memoire.free.fr/perso/OneStepBack/OneStepBack-green-brown-v${version}.zip";
|
|
sha256 = "16p002lak6425gcskny4hzws8x9dgsm6j3a1r08y11rsz7d2hnmy";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/themes
|
|
cp -a OneStepBack* $out/share/themes/
|
|
rm $out/share/themes/*/{LICENSE,README*}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Gtk theme inspired by the NextStep look";
|
|
homepage = "http://www.vide.memoire.free.fr/perso/OneStepBack";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|