depot/third_party/nixpkgs/pkgs/tools/misc/theme-sh/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

37 lines
890 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 = "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";
};
}