xdg-ninja: init at 0.2.0.1
This commit is contained in:
parent
2da64a8127
commit
ed4574574a
2 changed files with 38 additions and 0 deletions
36
pkgs/tools/misc/xdg-ninja/default.nix
Normal file
36
pkgs/tools/misc/xdg-ninja/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, jq, glow }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "xdg-ninja";
|
||||
version = "0.2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "b3nj5m1n";
|
||||
repo = "xdg-ninja";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ZyqxMlyCB8gEsZTVrxgLdW/mQ/4xeTHTK+lDKIzYs6I=";
|
||||
};
|
||||
|
||||
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 = "A 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; [ patricksjackson ];
|
||||
};
|
||||
}
|
|
@ -12418,6 +12418,8 @@ with pkgs;
|
|||
|
||||
xdummy = callPackage ../tools/misc/xdummy { };
|
||||
|
||||
xdg-ninja = callPackage ../tools/misc/xdg-ninja { };
|
||||
|
||||
xdxf2slob = callPackage ../tools/misc/xdxf2slob { };
|
||||
|
||||
xe-guest-utilities = callPackage ../tools/virtualization/xe-guest-utilities { };
|
||||
|
|
Loading…
Reference in a new issue