nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit aa2330bba114b15bb5fc036f88c064149c701a55
parent f0c2c4769b885f83f466b90e79d714916e27e548
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 31 Dec 2019 21:25:59 +0300

Add goldendict-dark-theme

Diffstat:
Mdefault.nix | 2++
Apkgs/goldendict-themes/dark-theme.nix | 27+++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -30,6 +30,8 @@ in rec { datamaps = callPackage ./pkgs/datamaps { inherit (sources) datamaps; }; + goldendict-dark-theme = + callPackage ./pkgs/goldendict-themes/dark-theme.nix { }; gpx-layer = perlPackages.callPackage ./pkgs/gpx-layer { inherit (sources) gpx-layer; }; diff --git a/pkgs/goldendict-themes/dark-theme.nix b/pkgs/goldendict-themes/dark-theme.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchgit }: + +stdenv.mkDerivation rec { + pname = "goldendict-dark-theme"; + version = "2018-11-08"; + + src = fetchgit { + url = "https://gist.github.com/ilius/5a2f35c79775267fbdb249493c041453"; + rev = "5c616fa8120fbf8aee9bc2d33e70f54e0990e759"; + sha256 = "1rpkfcjp3dhdnrnf68id956hvm8bn655cp8v4if5s753vx5ni012"; + }; + + dontBuild = true; + + installPhase = '' + install -Dm755 article-style.css $out/share/goldendict/styles/dark-theme/article-style.css + install -Dm755 qt-style.css $out/share/goldendict/styles/dark-theme/qt-style.css + ''; + + meta = with stdenv.lib; { + description = "GoldenDict Dark Theme"; + homepage = "https://gist.github.com/ilius/5a2f35c79775267fbdb249493c041453"; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.unix; + }; +}