This commit is contained in:
2026-01-21 17:31:45 +01:00
parent 96a5473c8b
commit bf5a069c4f
4 changed files with 63 additions and 0 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

View File

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1768886240,
"narHash": "sha256-C2TjvwYZ2VDxYWeqvvJ5XPPp6U7H66zeJlRaErJKoEM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "80e4adbcf8992d3fd27ad4964fbb84907f9478b0",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

35
flake.nix Normal file
View File

@@ -0,0 +1,35 @@
{
description = "assignment 1 of graphics and visualizations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
python3
cmake
git
libgcc
# x11 shenanigans
libx11.dev
libxcb.dev
xorg.libXrandr.dev
xorg.libXi.dev
xorg.libXcursor.dev
xorg.libXinerama.dev
openal
libvorbis.dev
libogg.dev
flac.dev
];
};
};
}