mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-07-17 07:56:56 +02:00
28 lines
761 B
Nix
28 lines
761 B
Nix
#!/usr/bin/env nix-shell
|
|
{pkgs?import<nixpkgs>{}}:let
|
|
name = "tengri";
|
|
stdenv = pkgs.clang19Stdenv;
|
|
LIBCLANG_PATH = "${pkgs.libclang.lib.outPath}/lib";
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [];
|
|
in pkgs.mkShell.override {
|
|
inherit stdenv;
|
|
} {
|
|
inherit name LIBCLANG_PATH LD_LIBRARY_PATH;
|
|
buildInputs = [
|
|
pkgs.libclang
|
|
pkgs.jack2
|
|
];
|
|
nativeBuildInputs = [
|
|
pkgs.pkg-config
|
|
pkgs.clang
|
|
pkgs.libclang
|
|
pkgs.mold
|
|
pkgs.bacon
|
|
(pkgs.quarto.overrideAttrs (oldAttrs: { # https://github.com/NixOS/nixpkgs/issues/519484
|
|
postPatch = (oldAttrs.postPatch or "") + ''
|
|
substituteInPlace bin/quarto.js \
|
|
--replace-fail "syntax-highlighting" "highlight-style"
|
|
'';
|
|
}))
|
|
];
|
|
}
|