Skip to content

Instantly share code, notes, and snippets.

❯ nix-build -A python3Packages.anndata
this derivation will be built:
/nix/store/swwnk1mhz2wfxy75asx67zjg2qkhi8di-python3.12-anndata-0.11.4.drv
building '/nix/store/swwnk1mhz2wfxy75asx67zjg2qkhi8di-python3.12-anndata-0.11.4.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
nixpkgs on  samuela/scanpy
❯ nix-build -A python3Packages.anndata
this derivation will be built:
/nix/store/kgligwzymlzjy7wvlb9jc9wv0wl3i198-python3.12-anndata-0.11.4.drv
building '/nix/store/kgligwzymlzjy7wvlb9jc9wv0wl3i198-python3.12-anndata-0.11.4.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
// This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node.
// Check the wiki for a full description of the configuration:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
// See https://github.com/YaLTeR/niri/wiki/Application-Issues#electron-applications
environment {
ELECTRON_OZONE_PLATFORM_HINT "auto"
}
// This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node.
// Check the wiki for a full description of the configuration:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
// See https://github.com/YaLTeR/niri/wiki/Application-Issues#electron-applications
environment {
ELECTRON_OZONE_PLATFORM_HINT "auto"
}
@samuela
samuela / gist:b0eadb6fc95508f51efd0aaeb4b3e590
Created March 16, 2025 14:08
bazel_7 enableNixHacks build log
nixpkgs on  master on ☁️
󰂃 10% ❯ nix-build -E 'with import <nixpkgs> {}; bazel_7.override { enableNixHacks = true; }'
this derivation will be built:
/nix/store/abzdw0gb1lz10w5rc97y88l3glpfxy0y-bazel-7.4.1.drv
building '/nix/store/abzdw0gb1lz10w5rc97y88l3glpfxy0y-bazel-7.4.1.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/9dh7hw9x3jw35s0xjb2zinlkh3ckr0yw-bazel-7.4.1-dist.zip
source root is .
Running phase: patchPhase
applying patch /nix/store/bak52cz0p06vsjd6wn0v3k7d8r822nca-java_toolchain.patch
{
"nodes": {
"naersk": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1698420672,
"narHash": "sha256-/TdeHMPRjjdJub7p7+w55vyABrsJlt5QkznPYy55vKA=",
"owner": "nix-community",
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1711624657,
"narHash": "sha256-IViG6BKCJY/I6oRNfAANf/QitYylepQSCzgam0TF+bs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "72c6ed328aa4e5d9151b1a512f6ad83aca7529fa",
"type": "github"
root@6b49c5e222e1:/workspaces/sshenanigans# cargo build
Compiling openssl-sys v0.9.101
Compiling anyhow v1.0.81
Compiling clap_builder v4.5.2
Compiling serde_json v1.0.114
Compiling rustix v0.38.31
Compiling sharded-slab v0.1.7
Compiling lock_api v0.4.11
Compiling tracing v0.1.40
Compiling flate2 v1.0.28
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3 python3Packages.boto3
import boto3
import json
def fetch_cloudtrail_events():
# NOTE: this is us-west-2 specific!
client = boto3.client(
"cloudtrail",
@samuela
samuela / failure.log
Created February 18, 2024 16:44
jax-test_cuda-passthru-failure
ubuntu@bitbop:~/nixpkgs$ NIXPKGS_ALLOW_UNFREE=1 nixglhost -- nix run --impure .#python3Packages.jax.passthru.test_cuda_jaxlibBin
warning: Git tree '/home/ubuntu/nixpkgs' is dirty
Traceback (most recent call last):
File "/nix/store/210z4yz9xpmch1fj7pzn83wdsbylmmlj-test_cuda/bin/test_cuda", line 7, in <module>
rng = random.PRNGKey(0)
^^^^^^^^^^^^^^^^^
File "/nix/store/w48pp30vl0jk2wvwdqgb9zg06my5m7sy-python3-3.11.7-env/lib/python3.11/site-packages/jax/_src/random.py", line 240, in PRNGKey
return _return_prng_keys(True, _key('PRNGKey', seed, impl))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/w48pp30vl0jk2wvwdqgb9zg06my5m7sy-python3-3.11.7-env/lib/python3.11/site-packages/jax/_src/random.py", line 202, in _key