Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 807 B view raw
1{ 2 stdenv, 3 fetchFromGitHub, 4 theme, 5 lib, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "gtk-theme-framework"; 10 version = "0.2.3"; 11 12 src = fetchFromGitHub { 13 owner = "jaxwilko"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "1z5s5rsgiypanf2z0avaisbflnvwrc8aiy5qskrsvbbaja63jy3s"; 17 }; 18 19 postPatch = '' 20 substituteInPlace main.sh \ 21 --replace "#!/usr/bin/env bash" "#!/bin/sh" 22 23 substituteInPlace scripts/install.sh \ 24 --replace "#!/usr/bin/env bash" "#!/bin/sh" 25 ''; 26 27 installPhase = '' 28 runHook preInstall 29 30 mkdir -p $out/share/themes 31 ./main.sh -i -t ${theme} -d $out/share/themes 32 33 runHook postInstall 34 ''; 35 36 meta = with lib; { 37 homepage = "https://github.com/jaxwilko/gtk-theme-framework"; 38 license = licenses.gpl3Only; 39 maintainers = [ ]; 40 }; 41}