Skip to content

Commit

Permalink
nix: improve packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jan 17, 2025
1 parent 6f113b9 commit 523e78e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions package.nix → default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
cmake,
lib,
pinocchio,
pkg-config,
python3Packages,
pythonImportsCheckHook,
qpsolvers,
scipy,
stdenv,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "toolbox-parallel-robots";
version = "0-unstable-2024-30-09";

Expand All @@ -30,8 +33,16 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
pkg-config
pythonImportsCheckHook
];
propagatedBuildInputs = [ python3Packages.pinocchio ];
propagatedBuildInputs = [
pinocchio
qpsolvers
scipy
];

doCheck = true;
pythonImportsCheck = [ "toolbox_parallel_robots" ];

meta = {
description = "Set of tools to work with robots with bilateral constraints";
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
packages = {
default = self'.packages.toolbox-parallel-robots;
toolbox-parallel-robots = pkgs.python3Packages.toPythonModule (pkgs.callPackage ./package.nix { });
toolbox-parallel-robots = pkgs.python3Packages.callPackage ./default.nix { };
};
};
};
Expand Down

0 comments on commit 523e78e

Please sign in to comment.