Skip to content

Releases: denful/flake-file

v0.6.0

14 Apr 21:45
@vic vic
7d16dfa

Choose a tag to compare

What's Changed

  • change letter casing by @musjj in #86
  • implement granular style formatting by @musjj in #85
  • Style tweak by @musjj in #88
  • nixlock v3.1 by @vic in #89
  • feat(core): Add preProcess option to allow customizing inputs before giving to generator backend. by @vic in #90
  • Expose flake-file.apps as flake apps, not packages by @Adda0 in #92
  • Update nixpkgs URL for flake migration tutorial by @drupol in #93
  • Add "Flakeless Parts" template by @theutz in #96
  • ci: don't make template checks wait for everything else by @theutz in #97
  • feat: output write-* to packages also by @theutz in #98
  • fix: export write-lock with flakeless-parts by @theutz in #99
  • fix: remove unnecessary nixpkgs-lib input by @musjj in #101

New Contributors

Full Changelog: v0.5.0...v0.6.0

v0.5.0

07 Mar 03:48
@vic vic
2345849

Choose a tag to compare

Flake output schemas powered by flake-file!

See the Traditional Flakes getting started guide. We also have a new templates/minimal showcasing the result of our bootstrap command:

Now the bootstrap command is simpler, just do:

mv flake.nix flake-file.nix # make your existing flake dynamic!
nix-shell https://github.com/vic/flake-file/archive/main.zip -A flake-file.sh --run bootstrap

Works on Lix, CppNix, DetNix, because it is just the Nix lib.types at work.

Checkout the template, change the hello output and run nix flake check, no new check derivation, no custom nix-runtime, just plain old nix modules.

A new write-lock command

Suggested by @drupol at Nix Discourse. This command detects the locking mechanism you are using and delegates to the corresponding write-* app.

Nixlock flake url schemes

Nixlock does not support flake url schemes, so flake-file translates our very common flake urls into the attrset needed for nixlock to work.

What's Changed

  • nixlock url schemes by @vic in #78
  • write-lock detects lock-file and runs corresponding app by @vic in #79
  • bootstrap command for traditional flakes. by @vic in #82
  • add templates/minimal showcasing flake output schemas by @vic in #83

Full Changelog: v0.4.0...v0.5.0

v0.4.0

28 Feb 00:02
@vic vic
e54fbd4

Choose a tag to compare

flake-file now supports several fetch/locking mechanisms besides Nix Flakes: unflake, npins, nixlock.

Each of them has a corresponding flakeModule.<name> and template.

Also, each of them provides an app write-flake/write-unflake/write-npins/write-nixlock which can be
called directly by our new Bootstrap nix-shell.

That means people can try any flake-file backend without compromise, you just need a flake.nix file:

# This example uses some flake.nix of yours and uses nixlock on it:
mkdir testing
nix-shell https://github.com/vic/flake-file/archive/refs/heads/main.zip \
  -A flake-file.sh --arg modules /some/flake.nix --run write-nixlock --argstr outdir ./testing

Each template provides a ./modules ready environment, eg: templates/nixlock.

What's Changed

  • remove nix-systems/systems, use lib instead by @drupol in #62
  • npins generator and template. by @vic in #63
  • test for tags for CI npins and unflake by @vic in #65
  • Add default.nix for bootstrapping by @vic in #66
  • docs by @vic in #68
  • bootstrap can now take a target directory by @vic in #69
  • bootstrap docs by @vic in #70
  • test npins transitive deps by @vic in #71
  • feat: add deps backend + inputs-lib shared helpers by @vic in #72
  • remove deps backend by @vic in #74
  • move bootstrap into modules by @vic in #73
  • move npins bash to file by @vic in #75
  • Support nixlock by @vic in #76

New Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.0

13 Feb 09:08
@vic vic
5312958

Choose a tag to compare

flake-file v0.3.0 now supports stable Nix non-flakes environments by integrating with unflake, this means you can now define flake-file.inputs and have them reflected on npins or unflake.nix.

What's Changed

  • fix: use attrsOf anything instead of attrs by @vidhanio in #55
  • Change default formatter to nixfmt by @mightyiam in #54
  • Use mkDefault for dendritics flake-file.outputs by @Shawn8901 in #56
  • use nixpkgs-unstable channel by @vic in #58
  • Integrate with unflake for supporting non-flake environments. by @vic in #60

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

21 Nov 06:52
@vic vic
9af20d5

Choose a tag to compare

What's Changed

  • Add support for submodules input attribute by @binarin in #40
  • Fix typos and update option docs in readme by @esselius in #41
  • Remove formatter.nix and nix-auto-follow from the Dendritic module by @teamwolfyta in #44
  • regen flake.nix files by @vic in #45
  • smaller flake files by collapsing single attrs by @vic in #46
  • fix diff order by @vic in #48
  • CI use cachix nix installer by @vic in #49
  • Fix: allow top-level empty follows by @vic in #50
  • Move from pkgs.system to pkgs.stdenv.hostPlatform.system by @vic in #51
  • breaking: dendritic module no longer provides den and flake-aspects by @vic in #52

New Contributors

Full Changelog: 0.1.0...v0.2.0

0.1.0

29 Oct 09:44
@vic vic
57b2a65

Choose a tag to compare

This is the first release. The library is feature complete for now, and can be used with confidence. main branch will be used for unstable version. We will be using semantic versioning for tags.

What's Changed

  • Add cute logo by @vic in #1
  • Include app on default module by @vic in #2
  • remove mightyiam/files dependency. by @vic in #3
  • fix: flake attributes order. by @vic in #6
  • Use same follows syntax as flake schema. by @vic in #7
  • Allow empty url on root input and have a follows. by @vic in #8
  • chore(regen): split into scripts. by @vic in #9
  • nothing but nix by @vic in #10
  • chore(devshell): Create a dev env to facilitate contributions. by @vic in #11
  • chore(readme): minor fixes by @vic in #12
  • re-enable allfollow. by @vic in #13
  • feat(prune-lock) Add flake-file.prune-lock.enable option. by @vic in #15
  • fix: remove allfollow input from dendritic/basic.nix by @vic in #16
  • fix: Inherited allfollow in flakeModules by @ginkogruen in #18
  • refactor: reorganize modules and update prune-lock API by @vic in #20
  • refactor: extract option definitions into separate files by @vic in #21
  • refactor!: move prune-lock logic out of write-flake. by @vic in #22
  • feat: Support flake-parts-builder templates by @vic in #23
  • feat: Support flake-parts-builder templates by @vic in #25
  • Readme by @vic in #26
  • Add nix-auto-follow as an allfollow alternative by @ginkogruen in #24
  • fix(readme): wrong path to templates/dendritic by @panchoh in #28
  • feat(inputs): add support for attribute representation by @HeitorAugustoLN in #27
  • docs: Clarify migration guide by @vorburger in #30
  • No templates lock by @vic in #34
  • Preserve follows bug by @vic in #35
  • dendritic template enables vic/den by @vic in #36
  • update inputs by @vic in #37
  • allow empty follows by @vic in #38

New Contributors

Full Changelog: https://github.com/vic/flake-file/commits/0.1.0