-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
45 lines (40 loc) · 992 Bytes
/
shell.nix
File metadata and controls
45 lines (40 loc) · 992 Bytes
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
38
39
40
41
42
43
44
45
{ pkgs ? import <nixpkgs> { } }:
let
name = "cmdql";
docfx = pkgs.buildDotnetGlobalTool {
pname = "docfx";
version = "2.75.1";
nugetSha256 = "sha256-bbD4+yNxM4vmZXPczeFH+Hy5IohKVA2cIrb+88tLD8Y=";
meta = with pkgs.lib; {
description = "Documentation Generation Tool";
homepage = "https://dotnet.github.io/docfx/";
license = licenses.mit;
platforms = [ builtins.currentSystem ];
};
};
tools = with pkgs; {
cli = [
coreutils
nixpkgs-fmt
];
dotnet = [
pkgs.dotnet-sdk_8
docfx
];
scripts = [ ];
};
paths = pkgs.lib.flatten [ (builtins.attrValues tools) ];
env = pkgs.buildEnv {
inherit name paths;
buildInputs = paths;
};
in
env.overrideAttrs (_: {
NIXUP = "0.0.5";
DOTNET_ROOT = "${pkgs.dotnet-sdk_8}";
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath ([
pkgs.stdenv.cc.cc
]);
NIX_LD = "${pkgs.stdenv.cc.libc_bin}/bin/ld.so";
nativeBuildInputs = [ ] ++ paths;
})