feat(flake): add overlays

This commit is contained in:
drewry pope 2023-08-22 16:27:55 -05:00
parent 7ec2e70bee
commit 905aa1c05f

View File

@ -4,7 +4,7 @@
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
outputs = { self, nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
@ -58,5 +58,16 @@
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
})
// {
overlays = {
default = final: prev: {
nix-software-center = self.packages.${final.system}.nix-software-center;
};
pkgs = final: prev: {
nixSoftwareCenterPkgs = self.packages.${prev.system};
};
};
overlay = self.overlays.default;
};
}