mirror of
https://codeberg.org/demostf/api-test.git
synced 2026-06-03 17:44:07 +02:00
flake reorg, nix integration testing
This commit is contained in:
parent
ea4778ed6e
commit
67465fc22a
14 changed files with 1558 additions and 689 deletions
28
nix/package.nix
Normal file
28
nix/package.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
rustPlatform,
|
||||
lib,
|
||||
pkg-config,
|
||||
openssl,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|data)(/.*)?"];
|
||||
cargoPackage = (fromTOML (readFile ../Cargo.toml)).package;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = cargoPackage.name;
|
||||
inherit (cargoPackage) version;
|
||||
inherit src;
|
||||
|
||||
buildInputs = [openssl];
|
||||
|
||||
nativeBuildInputs = [pkg-config];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ../Cargo.lock;
|
||||
};
|
||||
|
||||
meta.mainProgram = "api-test";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue