2023-04-21 22:24:39 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
2023-05-07 13:23:16 +02:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-04-21 22:24:39 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2023-05-13 22:20:43 +02:00
|
|
|
mkNocheck = drv: drv.overrideAttrs (o: {
|
|
|
|
doCheck = false;
|
2023-05-14 14:22:04 +02:00
|
|
|
checkInputs = [ ];
|
2023-05-13 22:20:43 +02:00
|
|
|
});
|
2023-04-21 22:24:39 +02:00
|
|
|
in
|
|
|
|
{
|
2023-04-21 22:46:18 +02:00
|
|
|
packages = rec {
|
|
|
|
u01 = pkgs.callPackage
|
|
|
|
({ stdenv, catch2_3, cmake }: stdenv.mkDerivation {
|
|
|
|
name = "ecg-u01";
|
|
|
|
|
|
|
|
src = ./u01;
|
|
|
|
|
2023-05-14 14:22:04 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
checkInputs = [ catch2_3 ];
|
2023-04-21 22:46:18 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
})
|
|
|
|
{ };
|
2023-05-04 09:01:18 +02:00
|
|
|
|
|
|
|
u02 = pkgs.callPackage
|
|
|
|
({ stdenv, catch2_3, cmake, freeglut, libGL, libGLU }: stdenv.mkDerivation {
|
|
|
|
name = "ecg-u02";
|
|
|
|
|
|
|
|
src = ./u02;
|
|
|
|
|
2023-05-14 14:22:04 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ freeglut libGL libGLU ];
|
|
|
|
checkInputs = [ catch2_3 ];
|
2023-05-04 09:01:18 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
})
|
|
|
|
{ };
|
2023-05-13 22:20:43 +02:00
|
|
|
|
2023-05-18 09:29:40 +02:00
|
|
|
u03 = pkgs.callPackage
|
|
|
|
({ stdenv, cmake, freeglut, libGL, libGLU }: stdenv.mkDerivation {
|
|
|
|
name = "ecg-u03";
|
|
|
|
|
|
|
|
src = ./u03;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ freeglut libGL libGLU ];
|
|
|
|
})
|
|
|
|
{ };
|
|
|
|
|
2023-05-13 22:20:43 +02:00
|
|
|
u01-nocheck = mkNocheck u01;
|
|
|
|
u02-nocheck = mkNocheck u02;
|
2023-04-21 22:46:18 +02:00
|
|
|
};
|
|
|
|
|
2023-04-21 22:24:39 +02:00
|
|
|
devShells.default = pkgs.mkShell {
|
2023-05-18 10:51:56 +02:00
|
|
|
nativeBuildInputs = with pkgs; [ catch2_3 cmake freeglut libGL libGLU reuse ];
|
2023-04-21 22:24:39 +02:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|