Original code from drupol
To use this repository as an overlay in another project, follow these steps:
-
Add the Repository as an Input:
Add the following to your
nix
file to include this repository as an input:inputs = { custom-nixpkgs.url = "github:FloydZ/nixpkgs"; };
-
Include the Overlay in
pkgs
:When constructing
pkgs
, include the overlay as follows:pkgs = import inputs.nixpkgs { overlays = [ inputs.custom-nixpkgs.overlays.default ]; };
-
Use Your Packages:
Access the packages in your project like this:
buildInputs = [ pkgs.example1 ];