This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
ecg-prog-filtered/flake.nix

43 lines
1 KiB
Nix
Raw Normal View History

2023-04-21 22:24:39 +02:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
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;
nativeBuildInputs = [ catch2_3 cmake ];
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;
nativeBuildInputs = [ catch2_3 cmake freeglut libGL libGLU ];
doCheck = true;
})
{ };
2023-04-21 22:46:18 +02:00
};
2023-04-21 22:24:39 +02:00
devShells.default = pkgs.mkShell {
2023-05-04 09:01:18 +02:00
nativeBuildInputs = with pkgs; [ catch2_3 cmake freeglut libGL libGLU ];
2023-04-21 22:24:39 +02:00
};
});
}