Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Gorrie lukego

View GitHub Profile
View nixpkgs-review
[luke@snowy:~/git/nixpkgs-lisp]$ nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
this path will be fetched (0.03 MiB download, 0.13 MiB unpacked):
/nix/store/q96f9vhis0xk06giw304f9r7hjasxrkw-nixpkgs-review-2.6.4
copying path '/nix/store/q96f9vhis0xk06giw304f9r7hjasxrkw-nixpkgs-review-2.6.4' from 'https://cache.nixos.org'...
$ git -c fetch.prune=false fetch --no-tags --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0
remote: Enumerating objects: 2926, done.
remote: Counting objects: 100% (1511/1511), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 2926 (delta 1471), reused 1495 (delta 1462), pack-reused 1415
Receiving objects: 100% (2926/2926), 10.42 MiB | 3.12 MiB/s, done.
View gist:e9c5517b7edf82b98c38a01977a8aa73
{ stdenv
, lib
, cacert
, curl
, runCommandLocal
, targetPlatform
, unzip
, appimage-run
, addOpenGLRunpath
, libGLU
@lukego
lukego / strace.txt
Created Mar 21, 2022
davinci resolve sound strace
View strace.txt
[pid 8515] newfstatat(AT_FDCWD, "/nix/store/1pj4gnng9ibcbd3cy4002lnyjwv2sjv3-alsa-lib-1.2.5.1/share/alsa/alsa.conf", <unfinished ...>
[pid 8515] <... newfstatat resumed>{st_mode=S_IFREG|0444, st_size=10119, ...}, 0) = 0
[pid 8515] openat(AT_FDCWD, "/dev/snd/controlC1", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 8515] <... openat resumed>) = 57
[pid 8515] ioctl(57, SNDRV_CTL_IOCTL_CARD_INFO <unfinished ...>
[pid 8515] <... ioctl resumed>, 0x7fde3fc78a90) = 0
[pid 8515] close(57 <unfinished ...>
[pid 8515] <... close resumed>) = 0
[pid 8515] openat(AT_FDCWD, "/dev/snd/controlC1", O_RDWR|O_CLOEXEC <unfinished ...>
[pid 8515] <... openat resumed>) = 57
@lukego
lukego / configuration.nix
Created Mar 20, 2022
NixOS configuration
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, _pkgs, ... }:
let pkgs = import <nixpkgs> { overlays = [ (import "/home/luke/git/nixos-rocm") ]; }; in
{
View bayes1.lisp
;;; bayes1.lisp – toy probabilistic programming for Bayesian inference
(defpackage :bayes1
(:use :common-lisp :alexandria :serapeum)
(:nicknames :bayes))
(in-package :bayes1)
;;;; Hidden state tracking
;;;
;;; Every time a random variable is assigned a value, either by
@lukego
lukego / error.txt
Created Nov 1, 2021
Julia plotting error on gksqt
View error.txt
[luke@snowy:~]$ nix-shell --pure -p cacert julia_16-bin
[nix-shell:~]$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.3 (2021-09-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
View gist:08efa6f9d2683d07187d3b95c9b94d7d
[luke@thinky:~/git]$ nix-shell -p lispPackages.quicklisp-to-nix-system-info
[nix-shell:~/git]$ quicklisp-to-nix-system-info --debug --verbose caveman
redefining QL-UTIL:WITHOUT-PROMPTING in DEFMACRO
redefining QL-UTIL:WITH-TEMPORARY-FILE in DEFMACRO
redefining QL-IMPL::ERROR-UNIMPLEMENTED in DEFUN
redefining QL-IMPL::NEUTER-PACKAGE in DEFMACRO
redefining QL-IMPL::FEATURE-EXPRESSION-PASSES-P in DEFUN
redefining QL-IMPL::DEFINE-IMPLEMENTATION-PACKAGE in DEFMACRO
redefining QL-IMPL:DEFINTERFACE in DEFMACRO
redefining QL-IMPL:DEFIMPLEMENTATION in DEFMACRO
@lukego
lukego / lispPackages-log.txt
Created Oct 19, 2021
Log of failing builds for lispPackages
View lispPackages-log.txt
[luke@thinky:~/git/nuddy/lisp]$ nix-build -k ~/git/nixpkgs -A lispPackages 2>&1 | tee lispPackages-log.txt
these derivations will be built:
/nix/store/8n7wfw32f4w095ldw9l13gyih19fb1q3-lisp-iolib-v0.8.4.drv
/nix/store/qq2jqypm5gh1gz47z8qpizbx9ri3wqjk-lisp-dbus-20200610-git.drv
/nix/store/sswgsqq6rcar80gqvyv58pyc7690r1cb-lisp-nyxt-2.0.0.drv
/nix/store/v6sqg061h42a2ca844lpwbsnx6n3mbi7-lisp-mgl-2021-10-07.drv
building '/nix/store/8n7wfw32f4w095ldw9l13gyih19fb1q3-lisp-iolib-v0.8.4.drv'...
building '/nix/store/v6sqg061h42a2ca844lpwbsnx6n3mbi7-lisp-mgl-2021-10-07.drv'...
mkdir: cannot create directory '/homeless-shelter': Permission denied
mkdir: cannot create directory '/homeless-shelter': Permission denied
@lukego
lukego / shell.nix
Created Oct 19, 2021
Nix environment for testing Lisp packages
View shell.nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
# Executable dependencies
let exes = [
sbcl lispPackages.clwrapper
git z3 cvc4
pkg-config
]; in
View cffi-testlog.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 57144 100 57144 0 0 845k 0 --:--:-- --:--:-- --:--:-- 845k
This is SBCL 2.1.2.nixos, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under