This commit is contained in:
Robin Appelman 2026-03-26 16:45:18 +01:00
commit fbb10546a9
9 changed files with 778 additions and 413 deletions

20
nix/package.nix Normal file
View file

@ -0,0 +1,20 @@
{
rustPlatform,
lib,
}: let
inherit (lib.sources) sourceByRegex;
inherit (builtins) fromTOML readFile;
src = sourceByRegex ../. ["Cargo.*" "(src)(/.*)?"];
version = (fromTOML (readFile ../Cargo.toml)).package.version;
in
rustPlatform.buildRustPackage rec {
pname = "tasproxy";
inherit src version;
cargoLock = {
lockFile = ../Cargo.lock;
};
meta.mainProgram = "tasproxy";
}