diff options
author | Robin Gloster <mail@glob.in> | 2016-01-24 00:23:29 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-01-30 20:31:01 +0000 |
commit | 629b5a88cdeef9748e62c15f5c4b592b92532182 (patch) | |
tree | 2fb4774892ca95ac846a6dee5753b7a64142ff72 /pkgs/development/python-modules/libsexy | |
parent | 2c3013f55bbc09d523e1863893c5fc170a7074a3 (diff) | |
download | nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.tar nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.tar.gz nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.tar.bz2 nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.tar.lz nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.tar.xz nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.tar.zst nixlib-629b5a88cdeef9748e62c15f5c4b592b92532182.zip |
pythonSexy: use mkDerivation
Diffstat (limited to 'pkgs/development/python-modules/libsexy')
-rw-r--r-- | pkgs/development/python-modules/libsexy/default.nix | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/libsexy/default.nix b/pkgs/development/python-modules/libsexy/default.nix index 5e0d391a3380..b0fa789d157b 100644 --- a/pkgs/development/python-modules/libsexy/default.nix +++ b/pkgs/development/python-modules/libsexy/default.nix @@ -1,31 +1,26 @@ -a @ { python, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, ... } : -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, }: + +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 { url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz"; sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d"; }; - inherit buildInputs propagatedBuildInputs; - configureFlags = []; + buildInputs = [ + pkgconfig pygtk + ]; + + propagatedBuildInputs = [ + libsexy gtk glib pango libxml2 + ]; - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall" "postInstall"]; - postInstall = a.fullDepEntry ('' + postInstall = '' ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/ - '') ["minInit"]; + ''; - name = "python-libsexy-" + version; meta = { description = "Python libsexy bindings"; }; |