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

@@ -66,6 +66,13 @@
pkgs.pkg-config
];
};
pg.pg-from = pkgs.callPackage ./package/postgres/pg-from/default.nix {
inherit (self.lib) cargoToml;
nativeBuildInputs = [
pkgs.pkgsBuildHost.rust-bin.stable."1.81.0".default
pkgs.pkg-config
];
};
};
devShells.${system} =

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;
}