forked from sofa-framework/sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (34 loc) · 1.29 KB
/
flake.nix
File metadata and controls
36 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
description = "SOFA is an open-source framework for interactive physics simulation, with emphasis on biomechanical and robotic simulations";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixgl.url = "github:nix-community/nixGL";
};
outputs =
inputs@{ flake-parts, nixgl, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
perSystem =
{ pkgs, self', system, ... }:
{
_module.args.pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
};
apps.nixgl = {
type = "app";
program = pkgs.writeShellApplication {
name = "nixgl-sofa";
text = "${pkgs.lib.getExe pkgs.nixgl.auto.nixGLDefault} ${pkgs.lib.getExe self'.packages.sofa}";
};
};
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
packages = {
default = self'.packages.sofa;
sofa = pkgs.callPackage ./package.nix { inherit (self'.packages) tight_inclusion; };
tight_inclusion = pkgs.callPackage ./tight_inclusion.nix { };
};
};
};
}