Skip to content

Instantly share code, notes, and snippets.

@haruki7049
haruki7049 / simula_log.txt
Created March 26, 2025 02:31
Simula 2d2cc5af479bbcaf52326d5bb99ea55fb8d13637
$ WAYLAND_DISPLAY=simula-0 SIMULA_DATA_DIR=./ ./result/bin/simula
Godot Engine v3.5.2.stable.custom_build - https://godotengine.org
Requested V-Sync mode: Disabled
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
OpenGL ES 3.0 Renderer: AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 19.1.6, DRM 3.59, 6.12.12)
Async. shader compilation: OFF
WARNING: All audio drivers failed, falling back to the dummy driver.
at: initialize (servers/audio_server.cpp:222)
libudev.so.1: cannot open shared object file: No such file or directory
$ ldd -r /nix/store/0rnmmwnlrfssbz6s4f96jc9mi1w1ggj5-ghc-9.6.5/lib/ghc-9.6.5/lib/x86_64-linux-ghc-9.6.5/libHSghc-prim-0.10.0-ghc9.6.5.so | grep stg_gc_unpt_r1
undefined symbol: stg_gc_unpt_r1 (/nix/store/0rnmmwnlrfssbz6s4f96jc9mi1w1ggj5-ghc-9.6.5/lib/ghc-9.6.5/lib/x86_64-linux-ghc-9.6.5/libHSghc-prim-0.10.0-ghc9.6.5.so)
simula> Running phase: unpackPhase
simula> unpacking source archive /nix/store/gvnrf03zbwg841a5ii8aiqyp1mm6zjlg-n6nc4kv4n4aq6qrgjk4r0nlkf4sb5g03-source
simula> source root is n6nc4kv4n4aq6qrgjk4r0nlkf4sb5g03-source
simula> Running phase: patchPhase
simula> Running phase: updateAutotoolsGnuConfigScriptsPhase
simula> Running phase: configurePhase
simula> no configure script, doing nothing
simula> Running phase: buildPhase
simula> Godot Engine v3.5.2.stable.custom_build - https://godotengine.org
simula> Requested V-Sync mode: Disabled
# To use cica fonts, run `nix-build -E 'with import <nixpkgs> { }; callPackage ./. { }`
{
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation {
pname = "cica";
version = "5.0.3";
@haruki7049
haruki7049 / perl-curl.pl
Created December 20, 2024 10:58
An hobby implementation of curl, for learning Perl.
#!/usr/bin/env perl
use strict;
use warnings;
use LWP;
use HTTP::Request;
my $url = <STDIN>;
my $user_agent = LWP::UserAgent->new;
--- a/pkgs/by-name/mi/mitra/package.nix
+++ b/pkgs/by-name/mi/mitra/package.nix
@@ -22,10 +22,12 @@ rustPlatform.buildRustPackage rec {
# MEMO: mitra v3.9.0 tests failed with cargo option, "--offline"
doCheck = false;
- RUSTFLAGS = [
- # MEMO: mitra use ammonia crate with unstable rustc flag
- "--cfg=ammonia_unstable"
- ];
@haruki7049
haruki7049 / command.txt
Last active December 1, 2024 10:27
SimulaVR
[haruki@tuf-chan:~/program-dir/Simula-haruki7049]$ nix run .?submodules=1#build-wlroots --show-trace > err.log
@haruki7049
haruki7049 / flake.nix
Created November 21, 2024 05:03
My purpose in SimulaVR to create flake.nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/63dacb46bf939521bdc93981b4cbb7ecb58427a0";
systems.url = "github:nix-systems/default-linux";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL";
@haruki7049
haruki7049 / err.log
Last active November 20, 2024 21:52
Ubuntu with Nix cannot run godot_4
ERROR: Parameter "fbc" is null.
at: _create_context (platform/linuxbsd/x11/gl_manager_x11.cpp:162)
WARNING: Your video card drivers seem not to support the required OpenGL version, switching to OpenGLES.
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:6102)
ERROR: Condition "tmp_display == (static_cast<EGLDisplay>(0))" is true. Returning: ERR_UNAVAILABLE
at: initialize (drivers/egl/egl_manager.cpp:358)
ERROR: Could not initialize OpenGLES.
at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:6120)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
this derivation will be built:
/nix/store/x5n5hag176qvwh2lsn6wywlbnydrhag0-mitra-3.9.0.drv
building '/nix/store/x5n5hag176qvwh2lsn6wywlbnydrhag0-mitra-3.9.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/y6y8bqx9b7pxf5qw254lg75cg0dhwzf5-mitra
source root is mitra
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
Executing cargoSetupPostPatchHook