flake-compat
flake-compat copied to clipboard
Add supports for new type = "file" locks added in https://github.com/NixOS/nix/commit/5b8c1deb18e0e6fc7a83fb8101cf5fc8dba38843. Unfortunately, the hash provided by the lock file is a recursive hash, while fetchurl wants a flat hash. So...
Using Nix 2.8.1, a flake from git has the attributes `rev`, `shortRev`, `revCount`, `lastModified` and `lastModifiedDate` all under `flake.sourceInfo`. However, with flake-compat, `flake.sourceInfo` has `rev`, `shortRev`, `lastModified` and `lastModifiedDate`, but...
According to https://github.com/NixOS/nix/issues/3121#issuecomment-1050510805, flake-compat should be that issue's workaround. However, it tries to move src to the nix store always. That is a sane default, as it imitates closer what...
in a flake I work on, I need to provide a compatibility layer for other packages than the default one, exposing result gives me the possibility. I dont mind if...
example formatted with nixfmt
I put ``` (import ( let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in fetchTarball { url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; sha256 = lock.nodes.flake-compat.locked.narHash; } ) { src = ./.; } ).defaultNix ``` in...
Nix supports `sourcehut:` inputs, but flake-compat doesn't.
Hi! Hopefully this will save some time to newcomers :)
[Current implementation](https://github.com/edolstra/flake-compat/blob/master/default.nix#L196) hard-codes the use of `devShell.${system}` while other shells can be provided in `flake.nix` at `devShell.${system}.`, e.g. `devShell.${system}.foo`. It would be useful to provide means of accessing these other...
It's confusing as a newbie to arrive at this repo and have no context whatsoever. Instead, we link to the nix wiki instead to point people to an explanation.