Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
823 B
Nix
42 lines
823 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 = with lib; {
|
|
homepage = "https://github.com/jaxwilko/gtk-theme-framework";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
};
|
|
}
|