From: Scott Worley Date: Thu, 11 Jun 2020 21:09:45 +0000 (-0700) Subject: Build with nix X-Git-Url: http://git.scottworley.com/snek/commitdiff_plain/c5da897d5d1db5dd33ded4a4e3b50be0ea377372?hp=5d52919c54878ff584dc377bd995f58ff371b57c Build with nix This doesn't work: $ nix-build . $ ./result/bin/snek Traceback (most recent call last): File "/nix/store/...-python3.7-snek-1.0/bin/.snek-wrapped", line 6, in from snek import main ModuleNotFoundError: No module named 'snek' --- diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..f4a9f9d --- /dev/null +++ b/default.nix @@ -0,0 +1,7 @@ +{ pkgs ? import { } }: +pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, }: + buildPythonPackage rec { + pname = "snek"; + version = "1.0"; + src = lib.cleanSource ./.; + }) { }