Provide nixpkgs.lib in bscpkgs outputs #14
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "abonerib/bscpkgs:bsckpgs-lib"
	
	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?
Currently, we can use bscpkgs similarly to nixpkgs either through
the flake outputs or with import bscpkgs:
The missing piece is
nixpkgs.lib(notpkgs.lib, the system agnosticone). The workaround is to do
bscpkgs.inputs.nixpkgs.libinstead. We cansimplify this by forwarding the lib to our outputs.
This enables us to use bscpkgs as a drop-in
replacing the inputs to our flake from nixpkgs to bscpkgs.
(
inputs.nixpkgs.url = "<...BSCpkgs url>").We could also expose
nixosConfigurationsand other outputs from nixpkgs in the same fashion, but I don't think they are needed.Currently, we can use bscpkgs similarly to nixpkgs either through the flake outputs or with import bscpkgs: ```nix # currently supported: bscpkgs.legacyPackages.x86_64-linux.hello let pkgs = import bscpkgs { system = "x86_64-linux"; }; in pkgs.hello ``` The missing piece is nixpkgs.lib (not pkgs.lib, the system agnostic one). The workaround is to do bscpkgs.inputs.nixpkgs.lib instead. We can simplify this by forwarding the lib to our outputs. This enables us to use bscpkgs as a drop-in replacing the inputs to our flake from nixpkgs to bscpkgs. (inputs.nixpkgs.url = "<...BSCpkgs url>").457ebcdeebtocbb310d19fcbb310d19ftobba8ee181fSince this only adds a flake output, it is a noop on bsc-ci:
bba8ee181ftoc7b5ec13b8