File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 sources = import ../../nix/sources.nix ;
3333 crane = import sources . crane { pkgs = pkgs ; } ;
3434 craneLib = crane . overrideToolchain ( pkgs : rustToolchain ) ;
35+ sqlitePkgConfigPath = lib . makeSearchPathOutput "dev" "lib/pkgconfig" [ pkgs . sqlite ] ;
3536
3637 # Only the files necessary to build the Rust-side and cache dependencies
3738 sqlFileFilter = path : _type : builtins . match "^.*\. (db|sql)$" path != null ;
8283 inherit cargoArtifacts ;
8384 src = wheelSrc ;
8485 env . LIBSQLITE3_SYS_USE_PKG_CONFIG = "${ pkgs . sqlite . dev } " ;
86+ env . PKG_CONFIG_PATH = sqlitePkgConfigPath ;
8587 }
8688 ) ) . overrideAttrs
8789 ( old : {
Original file line number Diff line number Diff line change 1616 sources = import ../nix/sources.nix ;
1717 crane = import sources . crane { pkgs = pkgs ; } ;
1818 craneLib = crane . overrideToolchain ( pkgs : rustToolchain ) ;
19+ sqlitePkgConfigPath = lib . makeSearchPathOutput "dev" "lib/pkgconfig" [ pkgs . sqlite ] ;
1920
2021 # Only the files necessary to build the Rust-side and cache dependencies
2122 sqlFileFilter = path : _type : builtins . match "^.*\. (db|sql)$" path != null ;
@@ -55,6 +56,7 @@ craneLib.buildPackage (
5556 env = {
5657 DATABASE_URL = "sqlite:///build/opsqueue/opsqueue/opsqueue_example_database_schema.db" ;
5758 LIBSQLITE3_SYS_USE_PKG_CONFIG = "${ pkgs . sqlite . dev } " ;
59+ PKG_CONFIG_PATH = sqlitePkgConfigPath ;
5860 } ;
5961
6062 }
You can’t perform that action at this time.
0 commit comments