flake.nix added

This commit is contained in:
Gregory Bednov 2026-08-29 08:19:16 +03:00
commit d68ac2f4ce
2 changed files with 60 additions and 0 deletions

33
flake.nix Normal file
View file

@ -0,0 +1,33 @@
{
description = "Surface relation extractor for OCCT";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
cmake
opencascade-occt
clang
];
};
defaultPackage.x86_64-linux = pkgs.stdenv.mkDerivation {
pname = "OcctSurfacer";
version = "1.0.0";
src = ./.;
nativeBuildInputs = [
pkgs.cmake
pkgs.opencascade-occt
];
cmakeFlags = [ "-DBUILD_TESTING=OFF" ];
};
};
}