mirror of
https://github.com/vlinkz/nix-software-center.git
synced 2024-09-11 21:37:38 +03:00
feat(flake): add overlays
This commit is contained in:
parent
7ec2e70bee
commit
905aa1c05f
15
flake.nix
15
flake.nix
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user