mirror of
https://github.com/vlinkz/nix-software-center.git
synced 2024-09-17 16:27:28 +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";
|
utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils }:
|
outputs = { self, nixpkgs, utils, ... }:
|
||||||
utils.lib.eachDefaultSystem (system:
|
utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
@ -58,5 +58,16 @@
|
|||||||
];
|
];
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
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