Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flakeApp option #24

Closed
srid opened this issue Feb 6, 2023 · 2 comments
Closed

Add flakeApp option #24

srid opened this issue Feb 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@srid
Copy link
Member

srid commented Feb 6, 2023

This,

   fmt = { 
     exec = "${lib.getExe pkgs.nixpkgs-fmt} ./*.nix"; 
     flakeApp = true;
   }; 

... would wire a flake app of the same name, so that nix run .#fmt will work (in addition to nix develop -c , fmt).

Useful in https://github.com/srid/nixos-config for running activation without entering the devShell. Useful for users who do not use direnv, as well.

cc @marijanp

@srid srid added the enhancement New feature or request label Feb 6, 2023
@srid
Copy link
Member Author

srid commented Feb 6, 2023

flakeApp cannot be true by default, because it does not make sense for many scripts (ghcid, for instance, can only be run in a devshell).

@srid
Copy link
Member Author

srid commented Mar 13, 2023

Closing in favour of #23

@srid srid closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant