From 1a224441228d07440f279ce4a15c9a043b8cda6d Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 12 Mar 2025 04:44:19 +0100 Subject: Part of event rendering --- ModerationClient/flake.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ModerationClient/flake.nix (limited to 'ModerationClient/flake.nix') diff --git a/ModerationClient/flake.nix b/ModerationClient/flake.nix new file mode 100644 index 0000000..6c55fde --- /dev/null +++ b/ModerationClient/flake.nix @@ -0,0 +1,37 @@ +{ + description = ".NET project template"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = inputs@{ nixpkgs, ... }: + inputs.utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + xorgLibs = with pkgs.xorg; [ + libICE + libSM + libX11 + libX11.dev + ]; + in + rec { + # `nix develop` + devShells.default = with pkgs; mkShell { + buildInputs = [ + dotnetCorePackages.dotnet_9.sdk + fontconfig + gnumake + icu + openssl + ] ++ xorgLibs; + + shellHook = '' + export DOTNET_ROOT=${dotnet-sdk} + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib.makeLibraryPath ([ fontconfig icu openssl ] ++ xorgLibs) } + ''; + }; + }); +} \ No newline at end of file -- cgit 1.5.1