Skip to content

Commit

Permalink
flakify
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jul 11, 2024
1 parent eef05b4 commit efd0755
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
description = "Bindings between Numpy and Eigen using Boost.Python";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
hpp-fcl = pkgs.callPackage ./package.nix { };
in
{
packages.default = hpp-fcl;
devShells.default = pkgs.mkShell { inputsFrom = [ hpp-fcl ]; };
}
);
}
15 changes: 15 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ python3Packages, lib }:
python3Packages.hpp-fcl.overrideAttrs (_: {
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./CMakeLists.txt
./doc
./include
./package.xml
./python
./src
./test
];
};
})

0 comments on commit efd0755

Please sign in to comment.