78ef5f9c14
Once nixpart 1.0 is released we then only need to delete one single directory rather than searching for needles in a haystack, that is, all of <nixpkgs>. Also, it keeps my sanity at an almost healthy level. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
30 lines
736 B
Nix
30 lines
736 B
Nix
{ stdenv, fetchurl, python, lvm2, dmraid }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pyblock-${version}";
|
|
version = "0.53";
|
|
|
|
src = fetchurl rec {
|
|
url = "http://pkgs.fedoraproject.org/repo/pkgs/python-pyblock/"
|
|
+ "${name}.tar.bz2/${md5}/${name}.tar.bz2";
|
|
md5 = "f6d33a8362dee358517d0a9e2ebdd044";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e 's|/usr/include/python|${python}/include/python|' \
|
|
-e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile
|
|
'';
|
|
|
|
buildInputs = [ python lvm2 dmraid ];
|
|
|
|
makeFlags = [
|
|
"USESELINUX=0"
|
|
"SITELIB=$(out)/lib/${python.libPrefix}/site-packages"
|
|
];
|
|
|
|
meta = {
|
|
description = "Interface for working with block devices";
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
};
|
|
}
|