nixpkgs-update: filter updates
This commit is contained in:
parent
c029c3d453
commit
e38de320b9
2 changed files with 14 additions and 1 deletions
hosts/build02
13
hosts/build02/filter.sed
Normal file
13
hosts/build02/filter.sed
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 1. replace versioned generic kernels with unversioned
|
||||
s|linuxKernel.packages.linux_[0-9_]*\.|linuxPackages.|g
|
||||
# 2. drop other kernels (hardened, xanmod, zen, etc)
|
||||
/linuxKernel.packages.linux_\w*/d
|
||||
|
||||
# replace versioned/jit with unversioned
|
||||
s|postgresql\w*Packages|postgresqlPackages|g
|
||||
|
||||
# replace versioned with the default version
|
||||
s|python3\w*Packages|python312Packages|g
|
||||
|
||||
# drop > 4000 packages that can't be updated
|
||||
/rPackages.\w*/d
|
|
@ -102,7 +102,7 @@ let
|
|||
cd "$LOGS_DIRECTORY/~fetchers"
|
||||
run_name="${name}.$(date +%s).txt"
|
||||
rm -f ${name}.*.txt.part
|
||||
${cmd} > "$run_name.part"
|
||||
${cmd} | sed -f ${./filter.sed} > "$run_name.part"
|
||||
rm -f ${name}.*.txt
|
||||
mv "$run_name.part" "$run_name"
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue