nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 771 B view raw
1{ 2 autoreconfHook, 3 fetchFromGitHub, 4 lib, 5 stdenv, 6}: 7 8stdenv.mkDerivation { 9 pname = "check-uptime"; 10 version = "0-unstable-2016-11-12"; 11 12 src = fetchFromGitHub { 13 owner = "madrisan"; 14 repo = "nagios-plugins-uptime"; 15 rev = "51822dacd1d404b3eabf3b4984c64b2475ed6f3b"; 16 hash = "sha256-0zOvaVWCFKlbblGyObir1QI0cU186J6y1+0ki/+KCaM="; 17 }; 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 21 enableParallelBuilding = true; 22 23 postInstall = '' 24 ln -sr $out/libexec $out/bin 25 ''; 26 27 meta = { 28 description = "Uptime check plugin for Sensu/Nagios/others"; 29 homepage = "https://github.com/madrisan/nagios-plugins-uptime"; 30 license = lib.licenses.gpl3Plus; 31 mainProgram = "check_uptime"; 32 maintainers = with lib.maintainers; [ peterhoeg ]; 33 }; 34}