|
|
@ -11,11 +11,19 @@
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
naersk-lib = pkgs.callPackage naersk { };
|
|
|
|
naersk-lib = pkgs.callPackage naersk { };
|
|
|
|
in
|
|
|
|
in
|
|
|
|
{
|
|
|
|
rec {
|
|
|
|
defaultPackage = naersk-lib.buildPackage ./.;
|
|
|
|
defaultPackage = naersk-lib.buildPackage ./.;
|
|
|
|
devShell = with pkgs; mkShell {
|
|
|
|
devShell = with pkgs; mkShell {
|
|
|
|
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy pkg-config openssl ];
|
|
|
|
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
|
|
|
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
|
|
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
dockerImage.smolhaj-ng = pkgs.dockerTools.buildImage {
|
|
|
|
|
|
|
|
name = "smolhaj-ng";
|
|
|
|
|
|
|
|
tag = "latest";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
|
|
|
Cmd = [ "${naersk-lib.buildPackage ./.}/bin/smolhaj-ng" ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|