mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
9ffa9fc87f
instead of the Marc auto update system. svn path=/nixpkgs/trunk/; revision=22229
20 lines
531 B
Bash
20 lines
531 B
Bash
#!/bin/sh
|
|
#
|
|
# Use this script with the upstream sorted list of patches
|
|
# curl ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/patch_order-5.0.5 |
|
|
# grep -v '^#' | sh create-patches-v5.sh
|
|
|
|
BASEURL=mirror://kernel/linux/daemons/autofs/v5;
|
|
|
|
echo '# File created automatically' > patches-v5.nix
|
|
echo 'fetchurl :' >> patches-v5.nix
|
|
echo '[' >> patches-v5.nix
|
|
|
|
while read a; do
|
|
URL=$BASEURL/$a
|
|
HASH=`nix-prefetch-url $URL`
|
|
echo "(fetchurl { url = $URL; sha256 = \"$HASH\"; })" >> patches-v5.nix
|
|
done
|
|
|
|
echo ']' >> patches-v5.nix
|