Add tempates for nix pkgs and poetry2nix expressions
This commit is contained in:
parent
790de989af
commit
45078e59d1
|
@ -154,6 +154,9 @@ nix-mode
|
||||||
> "done}" n
|
> "done}" n
|
||||||
> " '';")
|
> " '';")
|
||||||
|
|
||||||
|
(pkgs "pkgs = import " (p "<nixpkgs>") " {};")
|
||||||
|
(poetry2nix "poetry2nix = (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};")
|
||||||
|
|
||||||
(gitpackage "{ lib" n ", stdenv" n ", fetchFromGitHub" n ", " (p "inputs") n ", " (p "inputs") n "}:" n n>
|
(gitpackage "{ lib" n ", stdenv" n ", fetchFromGitHub" n ", " (p "inputs") n ", " (p "inputs") n "}:" n n>
|
||||||
"stdenv.mkDerivation rec {" n> "pname = \"" (p "" pkgn nil) "\";" n> "version = \"" p "\";" n n>
|
"stdenv.mkDerivation rec {" n> "pname = \"" (p "" pkgn nil) "\";" n> "version = \"" p "\";" n n>
|
||||||
"src = fetchFromGitHub {" n> "owner = \"" (p "" own) "\";" n> "repo = \"" (s pkgn) "\";" n>
|
"src = fetchFromGitHub {" n> "owner = \"" (p "" own) "\";" n> "repo = \"" (s pkgn) "\";" n>
|
||||||
|
|
Loading…
Reference in a new issue