nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 bash,
5 fetchFromGitHub,
6 makeWrapper,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "lse";
11 version = "4.14nw";
12
13 src = fetchFromGitHub {
14 owner = "diego-treitos";
15 repo = "linux-smart-enumeration";
16 tag = version;
17 hash = "sha256-qGLmrbyeyhHG6ONs7TJLTm68xpvxB1iAnMUApfTSqEk=";
18 };
19
20 buildInputs = [ bash ];
21
22 nativeBuildInputs = [ makeWrapper ];
23
24 installPhase = ''
25 mkdir -p $out/bin
26 cp lse.sh $out/bin/lse.sh
27 wrapProgram $out/bin/lse.sh \
28 --prefix PATH : ${lib.makeBinPath [ bash ]}
29 '';
30
31 meta = {
32 description = "Linux enumeration tool with verbosity levels";
33 homepage = "https://github.com/diego-treitos/linux-smart-enumeration";
34 changelog = "https://github.com/diego-treitos/linux-smart-enumeration/releases/tag/${version}";
35 license = lib.licenses.gpl3Only;
36 maintainers = with lib.maintainers; [ fab ];
37 mainProgram = "lse.sh";
38 platforms = lib.platforms.all;
39 };
40}