pythonSexy: use mkDerivation

This commit is contained in:
Robin Gloster 2016-01-24 00:23:29 +00:00
parent 2c3013f55b
commit 629b5a88cd
2 changed files with 15 additions and 20 deletions

View File

@ -1,31 +1,26 @@
a @ { python, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, ... } : { stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, }:
let
fetchurl = a.fetchurl; stdenv.mkDerivation rec {
name = "python-libsexy-${version}";
version = "0.1.9";
version = a.lib.attrByPath ["version"] "0.1.9" a;
buildInputs = with a; [
pkgconfig pygtk
];
propagatedBuildInputs = with a; [
libsexy python gtk glib pango libxml2
];
in
rec {
src = fetchurl { src = fetchurl {
url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz"; url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d"; sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
}; };
inherit buildInputs propagatedBuildInputs; buildInputs = [
configureFlags = []; pkgconfig pygtk
];
/* doConfigure should be removed if not needed */ propagatedBuildInputs = [
phaseNames = ["doConfigure" "doMakeInstall" "postInstall"]; libsexy gtk glib pango libxml2
postInstall = a.fullDepEntry ('' ];
postInstall = ''
ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/ ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
'') ["minInit"]; '';
name = "python-libsexy-" + version;
meta = { meta = {
description = "Python libsexy bindings"; description = "Python libsexy bindings";
}; };

View File

@ -2870,7 +2870,7 @@ let
pythonIRClib = pythonPackages.pythonIRClib; pythonIRClib = pythonPackages.pythonIRClib;
pythonSexy = builderDefsPackage (callPackage ../development/python-modules/libsexy) { }; pythonSexy = callPackage ../development/python-modules/libsexy { };
pytrainer = callPackage ../applications/misc/pytrainer { }; pytrainer = callPackage ../applications/misc/pytrainer { };