Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created July 10, 2019 22:49
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 matthew-piziak/74130c8ec726f0840c7ff2dab77f868b to your computer and use it in GitHub Desktop.
Save matthew-piziak/74130c8ec726f0840c7ff2dab77f868b to your computer and use it in GitHub Desktop.
let
pkgSource = https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
pkgTarball = fetchTarball pkgSource;
pkgs = import pkgTarball {};
pymacs = pkgs.python37.pkgs.buildPythonPackage rec {
pname = "Pymacs";
version = "0.25";
src = pkgs.python37.pkgs.fetchPypi {
inherit pname version;
sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
};
doCheck = false;
meta = with pkgs.python37.pkgs.lib; {
homepage = https://github.com/bendikro/Pymacs;
description = "Pymacs for Python 2 and 3";
};
};
leo-python = pkgs.python37.withPackages(ps: with ps; [ pip pymacs ]);
in
pkgs.stdenv.mkDerivation {
name = "leo";
buildInputs = [ leo-python ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment