mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, jq, glow }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "xdg-ninja";
|
|
version = "0.2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "b3nj5m1n";
|
|
repo = "xdg-ninja";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ASJIFQ/BpZMQGRtw8kPhtMCbXC1eb/X8TWQz+CAnaSM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 xdg-ninja.sh "$out/share/xdg-ninja/xdg-ninja.sh"
|
|
install -Dm644 programs/* -t "$out/share/xdg-ninja/programs"
|
|
|
|
mkdir -p "$out/bin"
|
|
ln -s "$out/share/xdg-ninja/xdg-ninja.sh" "$out/bin/xdg-ninja"
|
|
|
|
wrapProgram "$out/bin/xdg-ninja" \
|
|
--prefix PATH : "${lib.makeBinPath [ glow jq ]}"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Shell script which checks your $HOME for unwanted files and directories";
|
|
homepage = "https://github.com/b3nj5m1n/xdg-ninja";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ arcuru ];
|
|
mainProgram = "xdg-ninja";
|
|
};
|
|
}
|