Skip to content

Instantly share code, notes, and snippets.

View rgoulter's full-sized avatar

Richard Goulter rgoulter

View GitHub Profile
https://github.com/NixOS/nixpkgs/blob/1272e6aed4e1837d7df33006537da299d677edea/pkgs/stdenv/generic/default.nix#L135
https://github.com/NixOS/nixpkgs/blob/1272e6aed4e1837d7df33006537da299d677edea/pkgs/build-support/wrapper-common/darwin-sdk-setup.bash#L13

Plantuml

With the Nixpkgs plantuml:

  • either have to set env var (awkward),
  • custom derivation overriding it to be headless,
  • or install graphviz separately.
{ pkgs ? import <nixpkgs> {} }:
pkgs.python311.pkgs.callPackage ./hello.nix {}
{ buildPythonPackage
, foo
}:
buildPythonPackage {
pname = "bar";
version = "1.0.0";
src = ./bar;
doCheck = false;
pythonImportsCheck = ["bar"];
.PHONY: all foo bar
all:
echo "true"
foo:
echo "foo"
bar:
exit 1
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
#!/usr/bin/env python3
# Run with:
# python chat_bot.py [Twitch or Youtube Livestream URL] [Twitch or Youtube Livestream URL] ...
import argparse
import asyncio
import json
import sys
from urllib.parse import urlparse, parse_qs
boop

Differences:

vim modevimhelixnote
0gh
^gs
$gl
gq=format. TBI in helix. Vim’s = is ‘indent’.
C-v iC iOr Alt-s to split selection on newline.
Cv gl c