Merge pull request #190505 from figsoda/theme-sh

theme-sh: init at 1.1.5
This commit is contained in:
figsoda 2022-09-10 19:56:41 -04:00 committed by GitHub
commit f1717fe83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper, coreutils, gawk }:
stdenv.mkDerivation rec {
pname = "theme-sh";
version = "1.1.5";
src = fetchFromGitHub {
owner = "lemnos";
repo = "theme.sh";
rev = "v${version}";
sha256 = "sha256-zDw8WGBzO4/HRCgN7yoUxT49ibTz+QkRa5WpBQbl1nI=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 bin/theme.sh $out/bin
wrapProgram $out/bin/theme.sh \
--prefix PATH : ${lib.makeBinPath [ coreutils gawk ]}
runHook postInstall
'';
meta = with lib; {
description = "A script which lets you set your $terminal theme";
homepage = "https://github.com/lemnos/theme.sh";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ figsoda ];
mainProgram = "theme.sh";
};
}

View File

@ -11507,6 +11507,8 @@ with pkgs;
thefuck = python3Packages.callPackage ../tools/misc/thefuck { };
theme-sh = callPackage ../tools/misc/theme-sh { };
thicket = callPackage ../applications/version-management/git-and-tools/thicket { };
thiefmd = callPackage ../applications/editors/thiefmd { };