Skip to content
Snippets Groups Projects
Commit edf81932 authored by Florian Sesser's avatar Florian Sesser
Browse files

Add Python and MegaCli path substitution

parent e93eff4f
No related branches found
No related tags found
2 merge requests!228merge develop into production,!202Monitor MegaRAID on our storage nodes
Pipeline #1417 passed
......@@ -2,15 +2,18 @@
pkgs.stdenv.mkDerivation {
name = "megacli2prom";
buildInputs = [ pkgs.megacli ];
buildInputs = [ pkgs.python3 pkgs.megacli ];
src = pkgs.fetchFromGitHub {
owner = "PrivateStorageio";
repo = "megacli2prom";
rev = "43a5ceeed4219f013ac57a0ec3e76c4c9d2f4d93";
rev = "b845de8110050c7eb8aa655108515edcdb8f36be";
# sha256 = "0000000000000000000000000000000000000000000000000000";
sha256 = "1b8j3sg77j7bqg8529zyxfcha2scqdn9b8xvwqv5drcj4r121klc";
sha256 = "1v208f9v75j56dj4bpyngrl3nkd343sipq9wvz7ay0ank4y5wddj";
};
# substituteAllInPlace
prePatch = ''
substituteInPlace ./megacli2prom.py \
--replace '/opt/MegaRAID/MegaCli/MegaCli64' '${pkgs.megacli}/opt/MegaRAID/MegaCli/MegaCli64'
'';
installPhase = ''
mkdir -p $out/bin
cp ./megacli2prom.py $out/bin/megacli2prom
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment