Skip to content

Instantly share code, notes, and snippets.

@jonhermansen
Created July 13, 2025 17:57
Show Gist options
  • Save jonhermansen/458511d55336a2fd9928a62c15503a10 to your computer and use it in GitHub Desktop.
Save jonhermansen/458511d55336a2fd9928a62c15503a10 to your computer and use it in GitHub Desktop.
testing nixpkgs pr 423837
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash git
set -eux
echo 'This script will run `sudo nix-collect-garbage -d` ... press CTRL+C to abort'
read
cd $(mktemp -d)
git clone -b use-https-sources-when-possible https://github.com/jonhermansen/nixpkgs.git
cd nixpkgs
sudo nix-collect-garbage -d
pkg_list=(
chuck
vorbis-tools
texmaker
kega-fusion
ding
mkgmap
mkgmap-splitter
netsurf
netsurf.buildsystem
netsurf.libcss
netsurf.libdom
netsurf.libhubbub
netsurf.libnsbmp
netsurf.libnsfb
netsurf.libnsgif
netsurf.libnslog
netsurf.libnspsl
netsurf.libnsutils
netsurf.libparserutils
netsurf.libsvgtiny
netsurf.libutf8proc
netsurf.libwapcaplet
netsurf-nsgenbind
muchsync
wsjtx
marvin
bitscope.chart
bitscope.console
bitscope.display
bitscope.dso
bitscope.logic
bitscope.meter
bitscope.proto
bitscope.server
tetgen
abella
klee-uclibc
spass
statverif
rxvt-unicode-unwrapped
rxvt-unicode
evilwm
915resolution
ace-of-penguins
actkbd
alchemy
AMB-plugins
argus-clients
arj
#aspino # need to revert this one
autossh
bakoma_ttf
basex
bayescan
bibclean
blas
bluesnarfer
bpm-tools
brscan4
brother-udev-rule-type1
bsdbuild
bsd-games
bulletml
berkeley_upc
calculix-ccx
canon-cups-ufr2
caps
cd-discid
cfr
chntpw
ciopfs
cl-launch
cmt
cnstrokeorder
collapseos-cvm
corosync
cpuid
cryptoverif
cups-dymo
cups-toshiba-estudio
cutee
cvsq
daemon
dd_rescue
dell-530cdn
detach
djbdns
djvu2pdf
dmd-bootstrap
docbook2mdoc
docbook5
duktape
ebtables
ec2-api-tools
eclipse-mat
endgame-singularity
ergoscf
exonerate
fairymax
fastjet
fcrackzip
fil-plugins
flexibee
flpsed
fondu
gentium-book-basic
gentium-book
gentium-plus
gentium
getopt
gfan
gfie
gkrellm
gl2ps
globulation
google-chrome # check this one on darwin
gorilla-bin
grepcidr
gyre-fonts
hepmc
hpcg
icecast
icon-naming-utils
ifmetric
iftop
ilbc-rfc3951
iml
inchi
iozone
itstool
itsx
jack_oscrolloscope
jconvolver
jdom
jflex
jython
kawkab-mono
keyfuzz
kingstvis
kytea
lcab
lemon
libaacs
libasyncns
libatasmart
libbdplus
libcanberra
libdaemon
libdvbpsi
libdvdcss
linux-libertine-g
libestr
libev
libguestfs-appliance
libjpeg
liblangtag
liblogging
liblognorm
liblzf
libogg
libpst
libptytty
libroxml
libtirpc
libutempter
libzmf
lkproof
LPCNet
#lrs # need to undo this one
lsscsi
ltl2ba
lwm
macopix
maelstrom
mbuffer
memtester
mfcl8690cdwcupswrapper
mfcl8690cdwlpr
mimetic
molden # accidentally modified license URL here
molotov
moon-buggy
msr
musl
mvapich
mystem
n2048
nafees
nbench-byte
nload
nsf-ordlista
ntl
nuttcp
olympus-unwrapped
olympus
openbox
openclonk
opencsg
openfst
opengrm-ngram
opusfile
otf2
p0f
pam_tmpdir
papi
pari-galdata
pari-seadata-small
paup-cli
pcsc-scm-scl
pecita
perseus
phrasendrescher
pinpoint
pod2mdoc
polygraph
popa3d
red
remotebox
rott
rrootage
runit
safefile
saleae-logic
samsung-unified-linux-driver
scheherazade
scheherazade-new
SDL2_gfx
SDL_mixer
sdparm
selenium-server-standalone
serviio
siege
sienna
sixpair
smack
snipes
snmpcheck
sphinxsearch
spooles
stacks
stone
swfmill
swiften
sysklogd
ted
telepathy-idle
tet
texi2mdoc
textadept
tie
tigerjython
tinycdb
titanion
torus-trooper
ttf-envy-code-r
tumiki-fighters
ucs-fonts
udig
udns
uif2iso
uni-vga
urbanterror-maps
urbanterror
usb-modeswitch-data
usb-modeswitch
weather
wordnet
x3270
xcowsay
xearth
xmage
xxgdb
yabasic
#zeroad-data # need to undo these
#zeroad-unwrapped # this one too
zita-alsa-pcmi
zita-convolver
ztools
tango-icon-theme
rage
ber_metaocaml
smlnjBootstrap
celt_0_5_1
celt_0_7
celt
rhino
libagar
libdvdnav
libdvdread
libunique3
mpich # accidentally modified license URL here
hepmc3
speex
asdf_2_26
asdf_3_1
asdf_3_3 # 3.3.6
asdf # 3.3.4
luajitPackages.dkjson
lua54Packages.dkjson
lua53Packages.dkjson
lua52Packages.dkjson
lua51Packages.dkjson
luajitPackages.lmathx
lua54Packages.lmathx
lua53Packages.lmathx
lua52Packages.lmathx
lua51Packages.lmathx
luajitPackages.luuid
#lua54Packages.luuid # package marked broken
lua53Packages.luuid
lua52Packages.luuid
lua51Packages.luuid
ocamlPackages.ocaml-cryptgps # buildable?
ocamlPackages.elina
ocamlPackages.hmap
ocamlPackages.lutils
ocamlPackages.ocamlnat
ocamlPackages.ocaml-ocamlnet
ocamlPackages.rdbg
python313Packages.omniorbpy
python312Packages.omniorbpy
python313Packages.pythonefl
python312Packages.pythonefl
tclPackages.tdom
duckmarines
liquidwar5
mrrescue
sgt-puzzles
warsow
lilypond
ffado
asterisk
asterisk-ldap
pulseaudio
texlivePackages.dvipng
zpaqd
libsForQt5.fcitx5-chinese-addons
kdePackages.fcitx5-chinese-addons
tetex
)
git checkout 54990b8ebeceaa61a507623513ffc6af03ab4ced
# REMOVE THIS HACK LATER, these files wouldn't download for me when testing
git checkout 99afe02b71f3a4146e6faa4bcdde613045d15cc3 -- pkgs/by-name/as/aspino/package.nix
git checkout 99afe02b71f3a4146e6faa4bcdde613045d15cc3 -- pkgs/by-name/lr/lrs/package.nix
git checkout 99afe02b71f3a4146e6faa4bcdde613045d15cc3 -- pkgs/by-name/ze/zeroad/package.nix
for pkg in ${pkg_list[@]}; do
if nix-build -I nixpkgs=. -A $pkg; then
echo "Package $pkg built unexpectedly"
exit 255
fi
done
# cache is now primed, time for verification
git checkout 464f61e365324ca47c863c33c6d6e2acd8c26c2f
for pkg in ${pkg_list[@]}; do
if ! nix-build -I nixpkgs=. -A $pkg; then
echo "Package $pkg should have built"
exit 127
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment