Skip to content

Instantly share code, notes, and snippets.

@plumps
Created May 3, 2016 12:56
Show Gist options
  • Save plumps/2339ad3d7952c242f87c1704af31e845 to your computer and use it in GitHub Desktop.
Save plumps/2339ad3d7952c242f87c1704af31e845 to your computer and use it in GitHub Desktop.
just part of a bundleEnv
mongo = attrs: rec {
buildInputs = [ zlib python27Packages.python python27Packages.pymongo mongodb ];
_check = "${ruby_2_0.gemPath}/gems/sensu-plugins-mongodb-${(import ./gemset.nix).sensu-plugins-mongodb.version}/bin/check-mongodb.py";
postInstall = ''
# the ruby check runs a python script
patchShebangs $out/${_check}
'';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment