mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
commit
23572b63d7
40
pkgs/by-name/ls/lse/package.nix
Normal file
40
pkgs/by-name/ls/lse/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
bash,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lse";
|
||||
version = "4.14nw";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "diego-treitos";
|
||||
repo = "linux-smart-enumeration";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-qGLmrbyeyhHG6ONs7TJLTm68xpvxB1iAnMUApfTSqEk=";
|
||||
};
|
||||
|
||||
buildInputs = [ bash ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp lse.sh $out/bin/lse.sh
|
||||
wrapProgram $out/bin/lse.sh \
|
||||
--prefix PATH : ${lib.makeBinPath [ bash ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux enumeration tool with verbosity levels";
|
||||
homepage = "https://github.com/diego-treitos/linux-smart-enumeration";
|
||||
changelog = "https://github.com/diego-treitos/linux-smart-enumeration/releases/tag/${version}";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "lse.sh";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user