depot/third_party/nixpkgs/pkgs/tools/misc/theme-sh/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
888 B
Nix

{ 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 = "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";
};
}