Closed Besler closed 2 years ago
Is your feature request related to a problem? Please describe.
Not related to a problem.
Describe the solution you'd like
I would like to be able to use a semantic version pin of flake-utils in my project's flake.nix.
flake-utils
flake.nix
{ description = "Example flake-utils pin"; inputs = { nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11; flake-utils.url = github:numtide/flake-utils/1.2.3; # <-- See here }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in rec { packages = flake-utils.lib.flattenTree { hello = pkgs.hello; gitAndTools = pkgs.gitAndTools; }; defaultPackage = packages.hello; apps.hello = flake-utils.lib.mkApp { drv = packages.hello; }; defaultApp = apps.hello; } ); }
This would require a release cycle for flake-utils and pushing of git tags. See mach-nix for an example.
Describe alternatives you've considered
1) Not using version pinning. 2) Pinning to a git hash, inputs.flake-utils.url = github:numtide/flake-utils/12806d31a381e7cd169a6bac35590e7b36dc5fe5
inputs.flake-utils.url = github:numtide/flake-utils/12806d31a381e7cd169a6bac35590e7b36dc5fe5
Additional context
I might also be wrong and this is a stupid idea to begin with :)
Thanks for the push, I released v1.0.0
Is your feature request related to a problem? Please describe.
Not related to a problem.
Describe the solution you'd like
I would like to be able to use a semantic version pin of
flake-utils
in my project'sflake.nix
.This would require a release cycle for
flake-utils
and pushing of git tags. See mach-nix for an example.Describe alternatives you've considered
1) Not using version pinning. 2) Pinning to a git hash,
inputs.flake-utils.url = github:numtide/flake-utils/12806d31a381e7cd169a6bac35590e7b36dc5fe5
Additional context
I might also be wrong and this is a stupid idea to begin with :)