diff options
author | figsoda <figsoda@pm.me> | 2022-09-09 10:23:09 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-09-09 10:23:42 -0400 |
commit | a006efca93e30f6d0bb4cb1b4742e7f04f5bee7e (patch) | |
tree | b100566a1b4c4d2460d26a223e2480acf97f9c33 /pkgs/tools/misc/theme-sh | |
parent | 6a868a182e385e303945c3294e57a5690029e21a (diff) |
theme-sh: init at 1.1.5
Diffstat (limited to 'pkgs/tools/misc/theme-sh')
-rw-r--r-- | pkgs/tools/misc/theme-sh/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/theme-sh/default.nix b/pkgs/tools/misc/theme-sh/default.nix new file mode 100644 index 0000000000000..3d41258731512 --- /dev/null +++ b/pkgs/tools/misc/theme-sh/default.nix @@ -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"; + }; +} |