python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / dt-shell-color-scripts / default.nix
blob4dedbd66b332d8b9c009285fe7d3f95d22ede684
1 { stdenv
2 , lib
3 , fetchFromGitLab
4 , installShellFiles
5 , runtimeShell
6 , makeWrapper
7 }:
9 stdenv.mkDerivation {
10   pname = "dt-shell-color-scripts";
11   version = "unstable-2022-07-25";
13   src = fetchFromGitLab {
14     owner = "dwt1";
15     repo = "shell-color-scripts";
16     rev = "da2e3c512b94f312ee54a38d5cde131b0511ad01";
17     sha256 = "sha256-cdTgBbtsbJHaJuLIcZh0g0jKOrQyFx3P6QhYNx8hz0U=";
18   };
20   nativeBuildInputs = [ makeWrapper installShellFiles ];
22   installPhase = ''
23     runHook preInstall
24     patchShebangs ./colorscript.sh
25     patchShebangs ./colorscripts
26     mkdir -p $out/bin
27     mkdir -p $out/opt/shell-color-scripts/
28     cp -r colorscripts $out/opt/shell-color-scripts/colorscripts
29     installManPage colorscript.1
30     installShellCompletion --fish completions/colorscript.fish
31     installShellCompletion --zsh completions/_colorscript
32     chmod +x colorscript.sh
33     cp colorscript.sh $out/bin/colorscript
34     substituteInPlace $out/bin/colorscript \
35       --replace "/opt/shell-color-scripts/colorscripts" "$out/opt/shell-color-scripts/colorscripts"
36     runHook postInstall
37   '';
39     meta = with lib; {
40       description = "A collection of shell color scripts collected by dt (Derek Taylor)";
41       homepage = "https://gitlab.com/dwt1/shell-color-scripts";
42       license = with licenses; [ mit ];
43       maintainers = with maintainers; [ drzoidberg ];
44     };