Commit f4f836e4 authored by Anderson Torres's avatar Anderson Torres
Browse files

dt-shell-color-scripts: remove

parent 8650711f
Loading
Loading
Loading
Loading
+0 −45
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitLab
, installShellFiles
, runtimeShell
, makeWrapper
}:

stdenv.mkDerivation {
  pname = "dt-shell-color-scripts";
  version = "unstable-2022-07-25";

  src = fetchFromGitLab {
    owner = "dwt1";
    repo = "shell-color-scripts";
    rev = "da2e3c512b94f312ee54a38d5cde131b0511ad01";
    sha256 = "sha256-cdTgBbtsbJHaJuLIcZh0g0jKOrQyFx3P6QhYNx8hz0U=";
  };

  nativeBuildInputs = [ makeWrapper installShellFiles ];

  installPhase = ''
    runHook preInstall
    patchShebangs ./colorscript.sh
    patchShebangs ./colorscripts
    mkdir -p $out/bin
    mkdir -p $out/opt/shell-color-scripts/
    cp -r colorscripts $out/opt/shell-color-scripts/colorscripts
    installManPage colorscript.1
    installShellCompletion --fish completions/colorscript.fish
    installShellCompletion --zsh completions/_colorscript
    chmod +x colorscript.sh
    cp colorscript.sh $out/bin/colorscript
    substituteInPlace $out/bin/colorscript \
      --replace "/opt/shell-color-scripts/colorscripts" "$out/opt/shell-color-scripts/colorscripts"
    runHook postInstall
  '';

    meta = with lib; {
      description = "A collection of shell color scripts collected by dt (Derek Taylor)";
      homepage = "https://gitlab.com/dwt1/shell-color-scripts";
      license = with licenses; [ mit ];
      maintainers = with maintainers; [ drzoidberg ];
    };
}
+0 −1
Original line number Diff line number Diff line
@@ -4564,7 +4564,6 @@ with pkgs;
  dtools = callPackage ../development/tools/dtools { };
  dt-shell-color-scripts = callPackage ../tools/misc/dt-shell-color-scripts { };
  dtrx = callPackage ../tools/compression/dtrx { };