|
|
@ -5,36 +5,40 @@
|
|
|
|
naersk.url = "github:nix-community/naersk";
|
|
|
|
naersk.url = "github:nix-community/naersk";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, utils, naersk }:
|
|
|
|
outputs = {
|
|
|
|
utils.lib.eachDefaultSystem (system:
|
|
|
|
self,
|
|
|
|
let
|
|
|
|
nixpkgs,
|
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
|
|
|
utils,
|
|
|
|
naersk-lib = naersk.lib."${system}";
|
|
|
|
naersk,
|
|
|
|
in rec
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
utils.lib.eachDefaultSystem (system: let
|
|
|
|
packages.malachite = naersk-lib.buildPackage {
|
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
|
|
|
pname = "mlc";
|
|
|
|
naersk-lib = naersk.lib."${system}";
|
|
|
|
root = ./.;
|
|
|
|
in rec
|
|
|
|
};
|
|
|
|
{
|
|
|
|
|
|
|
|
packages.malachite = naersk-lib.buildPackage {
|
|
|
|
packages.default = packages.malachite;
|
|
|
|
pname = "mlc";
|
|
|
|
|
|
|
|
root = ./.;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
apps.malachite = utils.lib.mkApp {
|
|
|
|
packages.default = packages.malachite;
|
|
|
|
drv = packages.malachite;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apps.default = apps.malachite;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
apps.malachite = utils.lib.mkApp {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
drv = packages.malachite;
|
|
|
|
rustc
|
|
|
|
};
|
|
|
|
cargo
|
|
|
|
|
|
|
|
rustfmt
|
|
|
|
|
|
|
|
cargo-audit
|
|
|
|
|
|
|
|
clippy
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
apps.default = apps.malachite;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
|
|
|
|
rustc
|
|
|
|
|
|
|
|
cargo
|
|
|
|
|
|
|
|
rustfmt
|
|
|
|
|
|
|
|
cargo-audit
|
|
|
|
|
|
|
|
clippy
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|