mirror of
https://github.com/nix-community/nurl.git
synced 2024-09-11 10:10:39 +03:00
flake: add overlay
This commit is contained in:
parent
1687db2d03
commit
ca1e2596fd
40
flake.nix
40
flake.nix
@ -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;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user