This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import ../nixpkgs { }, | |
}: | |
let | |
lib = pkgs.lib; | |
# N.B. Keep in sync with default arg for stdenv/generic. | |
defaultMkDerivationFromStdenv = | |
stdenv: | |
(import ../nixpkgs/pkgs/stdenv/generic/make-derivation.nix { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
new file mode 100644 | |
index 0000000..de6f6c9 | |
--- /dev/null | |
+++ b/CMakeLists.txt | |
@@ -0,0 +1,33 @@ | |
+cmake_minimum_required(VERSION 4.0) | |
+ | |
+set(CMAKE_DISABLE_SOURCE_CHANGES ON) | |
+set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-module (luau-package)) | |
(use-modules | |
(guix packages) | |
(guix download) | |
(guix build-system cmake) | |
(guix licenses) | |
(gnu packages cmake) | |
(gnu packages pkg-config) | |
(gnu packages ninja) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
cmake | |
-B build | |
-G Ninja | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo | |
-S llvm | |
-DHAVE_CXX_ATOMICS_WITHOUT_LIB=ON | |
-DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON | |
-DLLVM_USE_SPLIT_DWARF=ON | |
-DLLVM_CCACHE_BUILD=ON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
src, | |
targets ? "host", | |
projects ? "clang;lld;mlir;libc", | |
stdenv, | |
cmakeMinimal, | |
ninja, | |
python313, | |
mold, | |
}: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim:ft=glsl | |
uniform float u_time; | |
uniform vec2 u_resolution; | |
float line(vec2 p, vec2 a, vec2 b) { | |
vec2 a2b = b - a; | |
vec2 a2p = p - a; | |
float h = clamp(dot(a2p,a2b) / dot(a2b,a2b), 0.0, 1.0); | |
vec2 p1 = mix(a, b, h); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::HashSet; | |
use anyhow::{Context as _, Result}; | |
use raw_window_handle::{HasDisplayHandle as _, HasWindowHandle as _}; | |
use vulkanalia::{ | |
loader::{LibloadingLoader, LIBRARY}, | |
vk::{ | |
self, DeviceV1_0 as _, Handle as _, HasBuilder, InstanceV1_0 as _, | |
KhrSurfaceExtension, KhrSwapchainExtension, PolygonMode, | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMMON_FLAGS="-Os -pipe" | |
LDFLAGS="-Os -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -stdlib=libc++ -Wl,--undefined-version" | |
CFLAGS="${COMMON_FLAGS}" | |
CXXFLAGS="${COMMON_FLAGS} -stdlib=libc++" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" | |
USE="-* udev bash pbzip2 gawk curl libarchive pigz gh zstd ipv6 vulkan wayland wayland-only static-libs" | |
EMERGE_DEFAULT_OPTS="--jobs=12 --load-average=12 --ask --tree" | |
PORTAGE_NICENESS="19" | |
MAKEOPTS="-j12" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/meson.build b/meson.build | |
index c9c3217ba4..d935e8f0bd 100644 | |
--- a/meson.build | |
+++ b/meson.build | |
@@ -3905,8 +3905,9 @@ foreach target : target_dirs | |
objects: objects, | |
include_directories: target_inc, | |
c_args: c_args, | |
- build_by_default: false, | |
- name_suffix: 'fa') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from concurrent.futures import ThreadPoolExecutor | |
import pygit2 | |
from rich.console import Group | |
from rich.live import Live | |
from rich.progress import (BarColumn, DownloadColumn, Progress, TextColumn, | |
TimeRemainingColumn, TransferSpeedColumn) | |
NewerOlder