flake: add overlay

This commit is contained in:
figsoda 2023-05-01 09:34:30 -04:00
parent 1687db2d03
commit ca1e2596fd

View File

@ -32,22 +32,8 @@
mercurial
nixVersions.unstable
];
in
{
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = runtimeInputs pkgs;
};
});
formatter = eachSystem (pkgs: pkgs.nixpkgs-fmt);
herculesCI.ciSystems = [
"x86_64-linux"
"aarch64-linux"
];
packages = eachSystem (pkgs:
packageFor = pkgs:
let
inherit (pkgs)
darwin
@ -63,8 +49,7 @@
"build.rs"
];
in
{
default = rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage {
pname = "nurl";
inherit (package) version;
@ -104,6 +89,27 @@
maintainers = with maintainers; [ figsoda ];
};
};
in
{
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = runtimeInputs pkgs;
};
});
formatter = eachSystem (pkgs: pkgs.nixpkgs-fmt);
herculesCI.ciSystems = [
"x86_64-linux"
"aarch64-linux"
];
overlays.default = _: prev: {
nurl = packageFor prev;
};
packages = eachSystem (pkgs: {
default = packageFor pkgs;
});
};
}