blob: 6c55fdeb89e5baf5474a042c9a75fc9eec9c15eb (
plain) (
blame)
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
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) }
'';
};
});
}
|