feat: allow for own patches

This commit is contained in:
Patrick 2024-11-05 15:20:07 +01:00
parent 063a049ffc
commit e06a9a061e
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 4 additions and 3 deletions

View file

@ -32,3 +32,4 @@ This file contains a small overview over the contents and structure of this repo
- `wayland/` configuration for wayland windowmanagers and basic utilities - `wayland/` configuration for wayland windowmanagers and basic utilities
- `xorg/` configuration for xorg windowmanagers and basic utilities - `xorg/` configuration for xorg windowmanagers and basic utilities
- `root` minimal configuration for root - `root` minimal configuration for root
' `patches` patche to be applied to nixpkgs before the system is built

View file

@ -6,12 +6,12 @@ if [ ! -f flake.nix ]; then
exit 1 exit 1
fi fi
mkdir -p patches mkdir -p patches/PR
echo "Removing old patches" echo "Removing old patches"
rm patches/*.diff rm patches/PR/*.diff
for t in "${PRS[@]}"; do for t in "${PRS[@]}"; do
echo "Fetching PR #$t" echo "Fetching PR #$t"
url="https://github.com/NixOS/nixpkgs/pull/$t" url="https://github.com/NixOS/nixpkgs/pull/$t"
echo "$url" echo "$url"
wcurl "$url.diff" --curl-options "--output-dir patches" wcurl "$url.diff" --curl-options "--output-dir patches/PR"
done done