nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 960 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 unstableGitUpdater, 6}: 7 8stdenv.mkDerivation { 9 pname = "onesixtyone"; 10 version = "0.3.4-unstable-2025-08-30"; 11 12 src = fetchFromGitHub { 13 owner = "trailofbits"; 14 repo = "onesixtyone"; 15 rev = "3bedd7cab7fe1bcfc2def208f87fbf10a013efc7"; 16 hash = "sha256-9gvulDEaEFZdGl/x5oNHTuMNbBK56dgOydQRyzGO29Q="; 17 }; 18 19 buildPhase = '' 20 $CC -o onesixtyone onesixtyone.c 21 ''; 22 23 installPhase = '' 24 install -D onesixtyone $out/bin/onesixtyone 25 ''; 26 27 passthru.updateScript = unstableGitUpdater { 28 url = "https://github.com/trailofbits/onesixtyone"; 29 tagPrefix = "v"; 30 branch = "master"; # optional, defaults to default branch 31 }; 32 33 meta = { 34 description = "Fast SNMP Scanner"; 35 homepage = "https://github.com/trailofbits/onesixtyone"; 36 license = lib.licenses.gpl2Plus; 37 platforms = lib.platforms.unix; 38 maintainers = [ lib.maintainers.fishi0x01 ]; 39 mainProgram = "onesixtyone"; 40 }; 41}