Skip to content

Instantly share code, notes, and snippets.

@cessationoftime
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cessationoftime/96542fb32f302cd2082e to your computer and use it in GitHub Desktop.
Save cessationoftime/96542fb32f302cd2082e to your computer and use it in GitHub Desktop.
Nix, with python, bad expression
#this is a bad version of a python NIX expression, with pythonIRClib dependency.
#arguments for the nix expression, syntax is { argname ? defaultvalue, argname ? defaultvalue }
{ stdenv ? (import <nixpkgs> {}).stdenv ,python ? (import <nixpkgs> {}).python, pythonPackages ? (import <nixpkgs> {}).pythonPackages, pythonIRClib ? (import <nixpkgs> {}).pythonIRClib }:
stdenv.mkDerivation {
name = "python-nix";
version = "0.1.0.0";
src = ./.;
buildDepends = [ pythonIRClib ]; #buildDepends is wrong unless working with Haskell.
buildTools = [ python ];
PYTHONPATH="${pythonIRClib}/lib/python2.7/site-packages";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment