nixpkgs/pkgs/by-name/li/linux-exploit-suggester/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

31 lines
848 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "linux-exploit-suggester";
version = "unstable-2022-04-01";
src = fetchFromGitHub {
owner = "mzet-";
repo = pname;
rev = "54a5c01497d6655be88f6262ccad5bc5a5e4f4ec";
sha256 = "v0Q8O+aaXEqwWAwGP/u5Nkm4DzM6nM11GI4XbK2PeWM=";
};
installPhase = ''
runHook preInstall
install -Dm755 linux-exploit-suggester.sh $out/bin/${pname}
runHook postInstall
'';
meta = with lib; {
description = "Tool designed to assist in detecting security deficiencies for given Linux kernel/Linux-based machine";
mainProgram = "linux-exploit-suggester";
homepage = "https://github.com/mzet-/linux-exploit-suggester";
license = licenses.gpl3Only;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.linux;
};
}