Skip to content

added non-flake nix compatibility with flake-compat#2009

Open
sunworms wants to merge 1 commit intoAvengeMedia:masterfrom
sunworms:flake-compat
Open

added non-flake nix compatibility with flake-compat#2009
sunworms wants to merge 1 commit intoAvengeMedia:masterfrom
sunworms:flake-compat

Conversation

@sunworms
Copy link
Contributor

This PR aims to add compatibility for non-flake setups by adding the input NixOS/flake-compat and creating a default.nix and a shell.nix that provide the same outputs as the ones provided by the flake.

Copy link
Collaborator

@marcusramberg marcusramberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok.

Copy link
Collaborator

@LuckShiba LuckShiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition looks okay, but I'm thinking about how necessary that is. Users that doesn't want to use the flake should in a best-case scenario use the Nixpkgs module, but it's still not in stable so I guess that is okay.

The only problem here is that it'll add two new top-level Nix files, which is okay but not ideal. @sunworms, I don't know much about non-flake usage, would it be viable having these files inside distro/nix or not at all?

@LuckShiba
Copy link
Collaborator

By testing here it seems to work by moving the files to distro/nix, changing the paths to reference ../../ and running nix-shell distro/nix or nix-build distro/nix, couldn't that be better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants