Compare commits
2 commits
8acf38fd5a
...
7238073b68
Author | SHA1 | Date | |
---|---|---|---|
7238073b68 | |||
86db15f616 |
1 changed files with 10 additions and 2 deletions
12
flake.nix
12
flake.nix
|
@ -11,11 +11,19 @@
|
|||
pkgs = import nixpkgs { inherit system; };
|
||||
naersk-lib = pkgs.callPackage naersk { };
|
||||
in
|
||||
{
|
||||
rec {
|
||||
defaultPackage = naersk-lib.buildPackage ./.;
|
||||
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;
|
||||
};
|
||||
dockerImage = pkgs.dockerTools.buildImage {
|
||||
name = "smolhaj-ng";
|
||||
tag = "latest";
|
||||
|
||||
config = {
|
||||
Cmd = [ "${naersk-lib.buildPackage ./.}/bin/smolhaj-ng" ];
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue