3f9d48168b
also fix the build
32 lines
638 B
Nix
32 lines
638 B
Nix
{ stdenv, fetchFromGitHub, ninja, boost, meson, pkgconfig, nix, isPy3k }:
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pythonix-${version}";
|
|
version = "0.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "pythonix";
|
|
rev = "v${version}";
|
|
sha256 = "1q1fagfwzvmcm1n3a0liay7m5krazmhw9l001m90rrz2x7vrsqwk";
|
|
};
|
|
|
|
disabled = !isPy3k;
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
|
|
|
buildInputs = [ nix boost ];
|
|
|
|
checkPhase = ''
|
|
ninja test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = ''
|
|
Eval nix code from python.
|
|
'';
|
|
maintainers = [ maintainers.mic92 ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|