Commit graph

27 commits

Author SHA1 Message Date
Phillip Cloud
51d10f73f1
chore: fixup flake warnings about overlays 2023-10-28 06:57:27 -04:00
Phillip Cloud
ed3b79fd21
fix: use poetry2nix from top-level when importing ./tools 2023-10-28 06:00:45 -04:00
K900
22b31f0c29 cleanup: reorganize flake a bit, export lib.mkPoetry2Nix as a function 2023-10-27 01:19:25 +03:00
adisbladis
a36613636d chore: Add treefmt 2023-10-26 12:23:25 +13:00
Phillip Cloud
321e0e9ef9
chore: try against nixpkgs/master 2023-10-25 11:18:31 -04:00
Phillip Cloud
806eb84c20
chore: use poetry from upstream nixpkgs 2023-10-24 16:59:09 -04:00
K900
7a5a5730d2
chore: update nixpkgs to include python bootstrap rework 2023-10-24 08:24:37 -04:00
adisbladis
a2d566fafe Bump flake inputs 2023-07-14 21:32:21 +12:00
adisbladis
cfecf702c2 Revert "Bump flake inputs"
This reverts commit 57af4be1d8.
2023-07-14 20:45:25 +12:00
adisbladis
57af4be1d8 Bump flake inputs 2023-07-14 19:30:58 +12:00
adisbladis
96d87dcbd5 Migrate from Niv to Flakes
It's annoying to have two incompatible version managers.
2023-07-14 19:21:55 +12:00
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