Files
nixpkgs/pkgs/by-name/cl/cli-tips/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
makeWrapper,
nix-update-script,
}:
stdenvNoCC.mkDerivation {
pname = "cli-tips";
version = "0-unstable-2025-02-03";
src = fetchFromGitHub {
owner = "cli-stuff";
repo = "cli-tips";
rev = "34e37224b51362003d1c5af2b0b6bc2a02b668d9";
hash = "sha256-ZJQGa7gaR76zsdZOVoIf87h2wraFFOuonJEDy6J8ygQ=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share
install -Dm755 cli-tips.sh $out/bin/cli-tips
cp -r translations $out/share
runHook postInstall
'';
postInstall = ''
wrapProgram $out/bin/cli-tips \
--set TIPS_FOLDER "$out/share/translations"
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = {
description = "CLI tool that provides useful tips and commands for Linux users";
homepage = "https://github.com/cli-stuff/cli-tips";
license = lib.licenses.unlicense;
platforms = with lib.platforms; linux ++ darwin ++ windows;
maintainers = with lib.maintainers; [ perchun ];
mainProgram = "cli-tips";
};
}