Commit graph

16 commits

Author SHA1 Message Date
K900
fb135081ec fix(flake): build poetry with correct poetry2nix 2023-04-05 10:06:33 +03:00
Jörg Thalheim
05b788f7b9 template: drop use of overlay
This makes the template a lot shorter.
Overlays are not only harder to read and understand (especially if
multiple of them have to be combined), they also have a
real performance impact as each flake would introduce its own instance
of nixpkgks, which can further multiply if these flakes are than import
into multiple NixOS configurations:
https://zimbatm.com/notes/1000-instances-of-nixpkgs

If the goal of overlays was here to make importing easier, I would
rather recommend looking into https://flake.parts
2023-01-15 13:01:36 +01:00
Jörg Thalheim
16e7600337 flake: replace deprecated default attributes with their new equivalents
defaultPackage was renamed to packages.default
defaultTemplate was renamed to templates.default
defaultApp was renamed to apps.default
2023-01-15 13:01:36 +01:00
Albert Peschar
bd48d1ea71 Use existing nixpkgs.legacyPackages.${system} instead of import 2023-01-10 16:51:41 +02:00
Frederik Rietdijk
9c90be6a1d Provide flake template for building an app
Provide a basic flake template for building a Python application.
2021-04-25 10:48:46 +02:00
Jörg Thalheim
3ee89c424c
flake.nix: add poetry2nix.cli 2021-01-15 18:00:08 +01:00
Matthieu Coudron
c826e376a8 chore: use flake-utils
to provide better support for different platforms.
2021-01-02 00:25:05 +01:00
Matthieu Coudron
797970c69d feat: can now call 'nix run' on it
For instance nix run poetry#. -- lock -v or something similar.
you can override the nixpkgs input if you dont want to redownload
it, or just lock everything.
2020-12-30 16:02:00 +01:00
Matthieu Coudron
034761d214 Revert "Remove package in flake.nix as we don't provide any"
This reverts commit 4d83e7e3af.
2020-12-30 16:02:00 +01:00
Eric Wolf
4d83e7e3af Remove package in flake.nix as we don't provide any 2020-11-22 09:38:15 +01:00
Matthieu Coudron
a2e78a41b3 flake: remove the deprecated 'edition' entry 2020-09-01 11:39:21 +02:00
adisbladis
db06bdd6e7
Format with nixpkgs-fmt 0.9 2020-05-19 21:06:02 +01:00
adisbladis
4ebbfdacd1
nixpkgs-fmt broke it's format yet again 2020-04-29 14:12:59 +01:00
adisbladis
f7e435407e
nixpkgs-fmt all the things (again...) 2020-03-14 23:13:51 +00:00
zimbatm
310282154c
nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
adisbladis
21cd90e820
Add nix flake 2019-11-19 20:00:38 +00:00