29 lines
889 B
Plaintext
29 lines
889 B
Plaintext
nix-mode
|
|
|
|
(fhsenv "let" n
|
|
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
|
> "fhs = pkgs.buildFHSUserEnv {" n
|
|
> "name = \"" (p "env") "\";" n
|
|
> "targetPkgs = _: [ " q " ];" n
|
|
> "profile = \"\";" n
|
|
> "};" n
|
|
"in" n
|
|
> "fhs.env")
|
|
(pyshell "let" n
|
|
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
|
> "fix-python = (builtins.getFlake \"github:GuillaumeDesforges/fix-python\").packages.${pkgs.system}.default;" n
|
|
> "python3 = pkgs." (p "python3") ";" n
|
|
"in" n
|
|
"pkgs.mkShellNoCC {" n
|
|
> "packages = [python3 fix-python pkgs.uv];" n
|
|
> "shellHook = ''" n
|
|
> "export PYTHONPATH=$(readlink -f " (p "./.") "):$PYTHONPATH" n
|
|
> "export MPLBACKEND=" (p "TkAgg") n
|
|
> "'';"n
|
|
"}")
|
|
|
|
;; Local Variables:
|
|
;; mode: lisp-data
|
|
;; outline-regexp: "[a-z]"
|
|
;; End:
|