mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
817 B
Nix
42 lines
817 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
theme,
|
|
lib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gtk-theme-framework";
|
|
version = "0.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jaxwilko";
|
|
repo = "gtk-theme-framework";
|
|
rev = "v${version}";
|
|
sha256 = "1z5s5rsgiypanf2z0avaisbflnvwrc8aiy5qskrsvbbaja63jy3s";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace main.sh \
|
|
--replace "#!/usr/bin/env bash" "#!/bin/sh"
|
|
|
|
substituteInPlace scripts/install.sh \
|
|
--replace "#!/usr/bin/env bash" "#!/bin/sh"
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/themes
|
|
./main.sh -i -t ${theme} -d $out/share/themes
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jaxwilko/gtk-theme-framework";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
};
|
|
}
|