-
Notifications
You must be signed in to change notification settings - Fork 58
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 flake.nix #134
Add flake.nix #134
Conversation
Will the lockfile need a lot of updating? |
I don't think so. |
alternatively, this can be used without a flake file as {
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
easy-purescript-nix = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
};
};
outputs = { self, nixpkgs, easy-purescript-nix, ... }@inputs:
let
easy-ps = import easy-purescript-nix { inherit pkgs; };
in
{
# ...
};
} |
I think this merge request is worth looking at again. Flakes are no longer behind an experimental flag in unstable and in future versions of Nix. |
@@ -0,0 +1,10 @@ | |||
{ inputs.utils.url = "github:numtide/flake-utils"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flake-utils
is not needed for what this project is doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, flake-utils
is never needed, it's just a nicer api. Do you have something more specific to say about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/NixOS/nixpkgs/blob/master/flake.nix#L14-L16
Nicer API? It's actually more lines of code to have inputs
and now you have an additional dependency.
It needs to be updated if you want to use a new set of defaults for |
I definitely don't want to block this, but importing nixpkgs from the classic file makes stuff like |
I no longer have interest in this PR. |
Just a simple flake that exposes the packages in this repo.