Skip to content

Instantly share code, notes, and snippets.

# 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
@haruki7049
haruki7049 / lbForth.c
Created November 13, 2024 11:37 — forked from lbruder/lbForth.c
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*
@haruki7049
haruki7049 / err.log
Created November 11, 2024 08:32
nixpkgs 3d7216f, zig_0_13 build failure
this derivation will be built:
/nix/store/6pjsgwpc0s3mndk3fp96mkya2vbna9s2-zig-0.13.0.drv
building '/nix/store/6pjsgwpc0s3mndk3fp96mkya2vbna9s2-zig-0.13.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/d3f65k6m4fkz9yb20rszsg5ci4b81ca3-source
source root is source
Running phase: patchPhase
substituteStream() in derivation zig-0.13.0: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'lib/std/zig/system.zig')
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
this derivation will be built:
/nix/store/3q5mg6p2hisllsp85nygmq57472ql9v4-jank-lang-dev.drv
building '/nix/store/3q5mg6p2hisllsp85nygmq57472ql9v4-jank-lang-dev.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/rdrb3flsjc7jm8nvwqzr74fx7c9jw8hx-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
fixing cmake files...