Commit 9b767f98 authored by Valentin Reis's avatar Valentin Reis

nix packaging.

parent 3f15f39d
......@@ -46,3 +46,6 @@ venv/
*.log
*.nav
*.out
#nix
result
......@@ -11,3 +11,8 @@ two years ago.
| **Systemwide Power Management with Argo**
| Dan Ellsworth, Tapasya Patki, Swann Perarnau, Pete Beckman *et al*
| In *High-Performance, Power-Aware Computing (HPPAC)*, 2016.
## Packaging
building:
nix-build -A nrm
{
pkgs ? import ( fetchTarball "https://github.com/NixOS/nixpkgs/archive/17.09.tar.gz") {},
}:
let
callPackage = pkgs.lib.callPackageWith (pkgs // self);
pythonPackages = pkgs.python27Packages;
self = rec {
nrm = callPackage ./nrm.nix { inherit pythonPackages ; };
inherit pkgs;
};
in
self
{ stdenv, pythonPackages, hwloc}:
pythonPackages.buildPythonPackage {
name = "nrm";
src = ./.;
propagatedBuildInputs = with pythonPackages;[ six numpy tornado pyzmq hwloc];
buildInputs = with pythonPackages;[ pytest];
testPhase = '' pytest '';
}
Markdown is supported
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