Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions pkgs/by-name/uv/uv/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
rust-jemalloc-sys,

# nativeBuildInputs
cmake,
installShellFiles,
pkg-config,

buildPackages,
versionCheckHook,
Expand All @@ -36,13 +34,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
rust-jemalloc-sys
];

nativeBuildInputs = [
cmake
installShellFiles
pkg-config
];

dontUseCmakeConfigure = true;
nativeBuildInputs = [ installShellFiles ];

cargoBuildFlags = [
"--package"
Expand All @@ -64,9 +56,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
''
);

nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;

Expand All @@ -84,6 +74,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
mit
];
maintainers = with lib.maintainers; [
bengsparks
GaetanLepage
prince213
];
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/python-modules/uv/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
buildPythonPackage,
installShellFiles,
pkg-config,
rustPlatform,
pkgs,
versionCheckHook,
}:

buildPythonPackage {
Expand All @@ -12,7 +12,6 @@ buildPythonPackage {
version
src
cargoDeps
dontUseCmakeConfigure
meta
cargoBuildFlags
postInstall
Expand All @@ -25,13 +24,13 @@ buildPythonPackage {
'';

nativeBuildInputs = [
pkgs.cmake
installShellFiles
pkg-config
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];

nativeCheckInputs = [ versionCheckHook ];

pyproject = true;
pythonImportsCheck = [ "uv" ];
}