Skip to content

Instantly share code, notes, and snippets.

View avnik's full-sized avatar
🏠
Working from home

Alexander V. Nikolaev avnik

🏠
Working from home
View GitHub Profile
@avnik
avnik / gist:dba19e702bf1ede8cd6d037be2e1b694
Created October 25, 2024 11:01
Attempt to fix gtkgreet cross
diff --git a/pkgs/applications/display-managers/greetd/gtkgreet.nix b/pkgs/applications/display-managers/greetd/gtkgreet.nix
index 10389c262742..e07940af948d 100644
--- a/pkgs/applications/display-managers/greetd/gtkgreet.nix
+++ b/pkgs/applications/display-managers/greetd/gtkgreet.nix
@@ -29,6 +29,7 @@ stdenv.mkDerivation rec {
meson
ninja
cmake
+ scdoc
wrapGAppsHook3
@avnik
avnik / gist:e4aef228b07a0199c38317cc9a0e955e
Created March 22, 2024 18:59
Chromium ffmpeg linking failure with debug
[21889/80041] SOLINK host/libffmpeg.so
FAILED: host/libffmpeg.so host/libffmpeg.so.TOC
"python3" "../../build/toolchain/gcc_solink_wrapper.py" --readelf="$READELF_FOR_BUILD" --nm="$NM_FOR_BUILD" --sofile="host/libffmpeg.so" --tocfile="host/libffmpeg.so.TOC" --output="host/libffmpeg.so" -- $CXX_FOR_BUILD -shared -Wl,-soname="libffmpeg.so" -Wl,-Bsymbolic -L host/gen/third_party/ffmpeg -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,-rpath=\$ORIGIN -o "host/libffmpeg.so" @"host/libffmpeg.so.rsp"
HARDENING: disabled flags: pie pic format stackprotector fortify strictoverflow
extra flags before to /nix/store/fmn7955255s333ia1vgnv76kp5ffwmwz-clang-17.0.6/bin/clang++:
-Wl\,-dynamic-linker=/nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/ld-linu
#!@python@/bin/python
import os
import sys
import subprocess
nix = "@nix@/bin/nix-env"
profiles = "/nix/var/nix/profiles"
system = sys.argv[1]
found = None
#!/bin/sh
ROOT=$(realpath $(dirname $0))
export MESA_GLSL_CACHE_DIR="/tmp/eu_shader_cache"
mkdir -p $MESA_GLSL_CACHE_DIR
cd ${ROOT}
#export vblank_mode=1
export LC_ALL=
export LC_CTYPE=ru_RU.UTF-8
export LC_TIME=C
export LC_MESSAGES=en_US.UTF-8
[avn@bulldozer:pts/14]~/work/haskell/xrefcheck% nix develop --show-trace --override-input haskell-nix /home/avn/nixos/haskell.nix
warning: Git tree '/home/avn/work/haskell/xrefcheck' is dirty
warning: flake 'git+file:///home/avn/work/haskell/xrefcheck' has deprecated attribute 'edition'
warning: flake 'git+file:///home/avn/nixos/haskell.nix?ref=master&rev=9f7e26d59e426d04830a73981eef3c3c267d2743' has deprecated attribute 'edition'
warning: updating lock file '/home/avn/work/haskell/xrefcheck/flake.lock':
* Updated 'haskell-nix': 'git+file:///home/avn/nixos/haskell.nix' -> 'git+file:///home/avn/nixos/haskell.nix?ref=master&rev=9f7e26d59e426d04830a73981eef3c3c267d2743'
warning: Git tree '/home/avn/work/haskell/xrefcheck' is dirty
warning: flake 'git+file:///home/avn/work/haskell/xrefcheck' has deprecated attribute 'edition'
while evaluating 'fetch' at /nix/store/fxi7zagf72cddxr3k0cvg3dxsr7zv8ag-source/nix/sources.nix:70:23, called from /nix/store/fxi7zagf72cddxr3k0cvg3dxsr7zv8
gcc -m64 -c -o xact_dll.o /build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c -I. \
-I/build/wine-5.12/dlls/xactengine3_0 -I/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7 \
-I../../include -I/build/wine-5.12/include -D__WINESRC__ -DXACT3_VER=0x0300 -D_REENTRANT -fPIC \
-fasynchronous-unwind-tables -Wall -pipe -fcf-protection=none -fno-stack-protector \
-fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
-Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
-Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \
-gstrict-dwarf -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:84:5: error: unknown type name 'IXACT34Cue'
84 | IXACT34Cue IXACT34Cue_iface;
maintainers/maintainer-list.nix: avnik = {
maintainers/maintainer-list.nix: email = "[email protected]";
maintainers/maintainer-list.nix: github = "avnik";
pkgs/applications/audio/mp3splt/gtk.nix: maintainers = [ maintainers.avnik ];
pkgs/applications/video/webcamoid/default.nix: maintainers = with maintainers; [ avnik ];
pkgs/applications/window-managers/qtile/0001-Substitution-vars-for-absolute-paths.patch:From: "Alexander V. Nikolaev" <[email protected]>
pkgs/applications/window-managers/qtile/0002-Restore-PATH-and-PYTHONPATH.patch:From: "Alexander V. Nikolaev" <[email protected]>
pkgs/applications/window-managers/qtile/0003-Restart-executable.patch:From: "Alexander V. Nikolaev" <[email protected]>
pkgs/data/fonts/inconsolata/lgc.nix: maintainers = with maintainers; [ avnik rht ];
pkgs/development/libraries/hyperscan/default.nix: maintainers = with maintainers; [ avnik ];
5 source(s) available.
index: 0
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 1030
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
[avn@bulldozer:pts/15]~/nixos/nixpkgs% nixos-rebuild build ~/nixos/nixpkgs
building Nix...
building the system configuration...
these derivations will be built:
/nix/store/435sdgrf8379fn2a5r7vrcsqi110hffi-cups-browsed.conf.drv
/nix/store/x6qw0hg68fizxw846np189nga5s49h56-cups-progs.drv
/nix/store/idp7ha7q37rh9q1jwyd540yj1zaphfhf-unit-script-cups-pre-start.drv
/nix/store/09a37l2iplsgifx4za3kb69kyj2c62bf-unit-cups.service.drv
/nix/store/0mrnxapi7zrq9cn0w6i9bswl32g3cdc2-unit-cups-browsed.service.drv
/nix/store/1n6sv1flj7q280v2w8xb1b4z57mkw279-etc-00-nixos.conf.drv
wine-gaming:[avn@bulldozer:/mnt/games/hearthstone]$ WINEPREFIX=$(pwd) wine control.exe
000b:fixme:winediag:__wine_start_process Wine Staging 5.5 is a testing version containing experimental patches.
000b:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
0009:err:module:LdrInitializeThunk "kernelbase.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"C:\\windows\\system32\\control.exe" failed, status c0000005