Commit 9b36861a authored by Jenny's avatar Jenny
Browse files

fem-monitoring-plugins: bump version and improve shebang patching

parent 59c8efe1
{ pkgs, stdenv }:
{ pkgs, stdenv, perl, python3, python }:
let
name = "fem-monitoring-plugins";
version = "2.0.1";
stdenv.mkDerivation rec
{
pname = "fem-monitoring-plugins";
version = "2.1.0";
src = fetchGit {
url = "https://gitlab.fem-net.de/monitoring/fem-nagios-plugins.git";
rev = "db727870ca7682d4eaad086994e4c723ec7cd852";
rev = "5bd9dbab2d7279f4f0019224114bda803d63a609";
};
in stdenv.mkDerivation
rec
{
inherit src name version;
prePatch = ''
for check in check*
do
substituteInPlace $check \
--replace '/usr/bin/env python3' ${pkgs.python3Full}/bin/python3 \
--replace '/usr/bin/env python2' ${pkgs.python2Full}/bin/python2 \
--replace '/usr/bin/env python' ${pkgs.python2Full}/bin/python2 \
--replace '/usr/bin/perl' ${pkgs.perl}/bin/perl
done
'';
buildInputs = [ perl python3 python ];
installPhase = ''
mkdir -p $out/bin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment