Commit graph

19 commits

Author SHA1 Message Date
Phillip Cloud
b3b1e54b32
Merge branch 'master' into devshell-poetry 2024-05-02 08:24:13 -04:00
Phillip Cloud
0eb3b888e2
chore: remove bogus newline 2024-05-01 07:06:53 -04:00
Phillip Cloud
5b2a053d06
Merge branch 'master' into patch-1 2024-05-01 07:05:03 -04:00
Phillip Cloud
0b48b5c978
fix: get tests passing and building with latest nixpkgs 2024-04-29 16:57:19 -04:00
James Brock
59bdf23c36 feat: Split flake template devShell: app and poetry
The nix template generates two devShells instead of one.
The first devShell provides project dependencies, but not poetry.
The second devShell provides only poetry.
2024-03-25 14:56:34 +09:00
Matúš Ferech
340a74a8fa
fix(template): add README
During the build poetry is looking for "README.md" file. Since it
does not exists, the build fails.
2024-03-11 02:27:00 +01:00
adisbladis
5609722465 templates/app: Add missing pyproject.toml & poetry.lock files
We didn't need them before, but as the flake template now refers to
stuff which uses these files to evaluate we must add them to the repo.
2023-11-09 18:56:19 +13:00
adisbladis
3ed06a00cb templates/app: Add missing pyproject.toml & poetry.lock files
We didn't need them before, but as the flake template now refers to
stuff which uses these files to evaluate we must add them to the repo.
2023-11-09 17:51:54 +13:00
K900
f06c8ac9d3 Add inputsFrom to flake example
So tools running in devshells actually work
2023-11-09 17:51:54 +13:00
K900
22b31f0c29 cleanup: reorganize flake a bit, export lib.mkPoetry2Nix as a function 2023-10-27 01:19:25 +03:00
Phillip Cloud
87a775aca2
fix(template): import poetry2nix instead of using legacyPackages 2023-10-26 06:11:52 -04:00
Phillip Cloud
65f59a49ab
chore: address statix and deadnix lints 2023-10-26 05:09:13 -04:00
adisbladis
b005f34302 templates: Remove usage of poetry attribute from poetry2nix flake
Closes #1362
2023-10-26 16:16:58 +13: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
adisbladis
0082e9bdd6
Merge pull request #738 from mayl/template_nixpkgs
Makes template track nixos-unstable
2022-10-04 14:25:08 +13:00
Larry May
46c475a6c4 Adds a devshell to template which includes poetry 2022-10-03 15:20:10 -04:00
Larry May
493bd5e4f1 Makes template track nixos-unstable
Previously, tracked nixpkgs/main which almost guarantees lots of cache
misses and compiling from source.
2022-10-03 09:23:37 -04:00
Jairo Llopis
a71ffbe7c5
Remove rec from template
It seems this is an anti-pattern, according to https://nix.dev/anti-patterns/language#rec-expression.

So, I suggest to remove it from there. Better not ship anti-patterns on templates, isn't it?
2022-01-12 08:42:40 +01: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