feat(nix): init flake and devshell #2
samminhch/evergarden-helix:Nix-Integration into main oh my fault a flake would actually be better with whiskers and stuff so this one (447d4f4fb1/flake.nix) was good with a few suggestions:
- use unstable nixpkgs
- use
https://codeberg.org/evergarden/whiskers/archive/main.tar.gzfor whiskers - instead of locking the system to
x86_64-linux, use something like this:Lines 11 to 15 in evergarden/whiskers@89c61f9forAllSystems =function:nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: function nixpkgs.legacyPackages.${system}); - use
mkShellNoCC
88ad14d805
to 417a7b2059
@koibtw wrote in #2 (comment):
oh my fault a flake would actually be better with whiskers and stuff so this one (
447d4f4fb1/flake.nix) was good with a few suggestions:* use unstable nixpkgs * use `https://codeberg.org/evergarden/whiskers/archive/main.tar.gz` for whiskers * instead of locking the system to `x86_64-linux`, use something like this: [evergarden/whiskers](https://codeberg.org/evergarden/whiskers/) – [flake.nix](https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13/flake.nix#L11-L15)Lines 11 to 15 in [evergarden/whiskers@89c61f9](https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13)` forAllSystems = `` function: `` nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( `` system: function nixpkgs.legacyPackages.${system} `` ); ` * use `mkShellNoCC`
Okay it's been done :). I also have a question out of curiousity, why do we pull the tar.gz of our repos when we could fetch the git url from it? I haven't really seen any other nix input besides ours using tar.gz so I am just wondering
thanks! the tarball doesnt contain repo info and git stuff so its somewhat lighter. ive seen this done in a lot of flakes
@koibtw wrote in #2 (comment):
thanks! the tarball doesnt contain repo info and git stuff so its somewhat lighter. ive seen this done in a lot of flakes
Ah that makes a lot of sense! I guess I have more flakes to explore then haha
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?