···
throw "Unsupported system";
27
-
if !config.microsoftVisualStudioLicenseAccepted then
29
-
Microsoft Software License Terms are not accepted with config.microsoftVisualStudioLicenseAccepted.
30
-
Please read https://visualstudio.microsoft.com/license-terms/mt644918/ and if you agree, change your
31
-
config to indicate so.
34
-
stdenvNoCC.mkDerivation (finalAttrs: {
27
+
stdenvNoCC.mkDerivation (finalAttrs: {
40
-
nativeBuildInputs = [ xwin ];
33
+
nativeBuildInputs = [ xwin ];
42
-
outputHashAlgo = "sha256";
43
-
outputHashMode = "recursive";
44
-
outputHash = hashes.${arch};
35
+
outputHashAlgo = "sha256";
36
+
outputHashMode = "recursive";
38
+
if !config.microsoftVisualStudioLicenseAccepted then
40
+
Microsoft Software License Terms are not accepted with config.microsoftVisualStudioLicenseAccepted.
41
+
Please read https://visualstudio.microsoft.com/license-terms/mt644918/ and if you agree, change your
42
+
config to indicate so.
46
-
__structuredAttrs = true;
49
-
"--cache-dir=xwin-out"
50
-
"--manifest=${./manifest.json}"
53
-
"--preserve-ms-arch-notation"
47
+
__structuredAttrs = true;
50
+
"--cache-dir=xwin-out"
51
+
"--manifest=${./manifest.json}"
54
+
"--preserve-ms-arch-notation"
59
-
xwin "''${xwinArgs[@]}"
61
-
mv xwin-out/splat/* "$out"
60
+
xwin "''${xwinArgs[@]}"
62
+
mv xwin-out/splat/* "$out"
70
-
updateScript = ./update.nu;
72
-
hello-world = testers.runCommand {
73
-
name = "hello-msvc";
71
+
updateScript = ./update.nu;
73
+
hello-world = testers.runCommand {
74
+
name = "hello-msvc";
75
-
nativeBuildInputs = [
76
-
llvmPackages.clang-unwrapped
77
-
llvmPackages.bintools-unwrapped
76
+
nativeBuildInputs = [
77
+
llvmPackages.clang-unwrapped
78
+
llvmPackages.bintools-unwrapped
83
-
cat > hello.c <<- EOF
84
+
cat > hello.c <<- EOF
86
-
int main(int argc, char* argv[]) {
87
-
printf("Hello world!\n");
87
+
int main(int argc, char* argv[]) {
88
+
printf("Hello world!\n");
92
-
clang-cl --target=x86_64-pc-windows-msvc -fuse-ld=lld \
93
-
/vctoolsdir ${finalAttrs.finalPackage}/crt \
94
-
/winsdkdir ${finalAttrs.finalPackage}/sdk \
93
+
clang-cl --target=x86_64-pc-windows-msvc -fuse-ld=lld \
94
+
/vctoolsdir ${finalAttrs.finalPackage}/crt \
95
+
/winsdkdir ${finalAttrs.finalPackage}/sdk \
97
-
if test ! -f hello.exe; then
98
-
echo "hello.exe not found!"
98
+
if test ! -f hello.exe; then
99
+
echo "hello.exe not found!"
109
-
description = "MSVC SDK and Windows CRT for cross compiling";
110
-
homepage = "https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/";
111
-
maintainers = [ lib.maintainers.RossSmyth ];
113
-
deprecated = false;
114
-
fullName = "Microsoft Software License Terms";
115
-
shortName = "msvc";
116
-
spdxId = "unknown";
117
-
url = "https://www.visualstudio.com/license-terms/mt644918/";
119
-
platforms = lib.platforms.all;
120
-
# The arm32 manifest is missing critical pieces.
121
-
broken = stdenvNoCC.hostPlatform.isAarch32;
122
-
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
123
-
teams = [ lib.teams.windows ];
110
+
description = "MSVC SDK and Windows CRT for cross compiling";
111
+
homepage = "https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/";
112
+
maintainers = [ lib.maintainers.RossSmyth ];
114
+
deprecated = false;
115
+
fullName = "Microsoft Software License Terms";
116
+
shortName = "msvc";
117
+
spdxId = "unknown";
119
+
url = "https://www.visualstudio.com/license-terms/mt644918/";
121
+
platforms = lib.platforms.all;
122
+
# The arm32 manifest is missing critical pieces.
123
+
broken = stdenvNoCC.hostPlatform.isAarch32;
124
+
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
125
+
teams = [ lib.teams.windows ];