build(pg-from): add to packages

This commit is contained in:
2025-02-04 02:17:41 +00:00
parent 7251741922
commit eeda2fe61b
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{ cargoToml, nativeBuildInputs, pkgs, ... }:
let
src = ./.;
cargo = cargoToml src;
in
pkgs.rustPlatform.buildRustPackage {
pname = cargo.package.name;
version = cargo.package.version;
inherit nativeBuildInputs src;
cargoLock.lockFile = ./Cargo.lock;
doCheck = true;
}