Use nixpkgs from flake.lock and support attrs when importing bscpkgs #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "abonerib:feat/import-bscpkgs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This makes
nix-buildand friends use the current flake lock instead ofthe outdated pinned version we had in
./nixpkgs.nixWith this,
nix-build -A ovniandnix build .#ovnishould produce thesame result.
This will fail if the flake nixpkgs input does not come from NixOS/nixpkgs.
We could use edolstra/flake-compat instead, but it's overkill imho.
Additionally, I made default.nix behave like nixpkgs, so that we can
import bscpkgs à la nixpkgs (Apply overlays and other options that nixpkgs
accepts):
This makes `nix-build` and friends use the current flake lock instead of the outdated pinned version we had in `./nixpkgs.nix` With this, `nix-build -A ovni` and `nix build .#ovni` should produce the same result. This will fail if the flake nixpkgs input does not come from NixOS/nixpkgs. We could use edolstra/flake-compat instead, but it's overkill imho. Additionally, I made default.nix behave like nixpkgs, so that we can import bscpkgs à la nixpkgs (Apply overlays and other options that nixpkgs accepts): ```nix let pkgs = import bscpkgs { inherit system; }; in <...> ```Nice!, thanks.
Reviewed-by: Rodrigo Arias Mallo rodrigo.arias@bsc.es
78c6090168to2aa9eff970Merged in
43d32ac16d