initial commit
All checks were successful
Publish Docker Images / coverage-and-sonar (push) Successful in 9m47s
All checks were successful
Publish Docker Images / coverage-and-sonar (push) Successful in 9m47s
This commit is contained in:
16
nix/package.nix
Normal file
16
nix/package.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
rustPlatform,
|
||||
...
|
||||
}: let
|
||||
cargoToml = fromTOML (builtins.readFile ../Cargo.toml);
|
||||
name = cargoToml.package.name;
|
||||
version = cargoToml.package.version;
|
||||
rustBuild = rustPlatform.buildRustPackage {
|
||||
pname = name;
|
||||
inherit version;
|
||||
src = ../.;
|
||||
cargoLock.lockFile = ../Cargo.lock;
|
||||
};
|
||||
in {
|
||||
default = rustBuild;
|
||||
}
|
||||
Reference in New Issue
Block a user