759f74ae9c
Add a custom update script because normal update scripts can't handle the special version, which includes the kernel version. The simple solution of not including the kernel version in the package version was not accepted for some reason.
22 lines
525 B
Bash
Executable File
22 lines
525 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p ripgrep common-updater-scripts
|
|
|
|
set -xeu -o pipefail
|
|
|
|
PACKAGE_DIR="$(realpath "$(dirname "$0")")"
|
|
cd "$PACKAGE_DIR/.."
|
|
while ! test -f default.nix; do cd .. ; done
|
|
NIXPKGS_DIR="$PWD"
|
|
|
|
latest_version="$(
|
|
list-git-tags --url=https://github.com/linux-apfs/linux-apfs-rw \
|
|
| sort --version-sort \
|
|
| tail -n1
|
|
)"
|
|
|
|
latest_version_no_v_prefix="${latest_version#"v"}"
|
|
|
|
cd "$NIXPKGS_DIR"
|
|
update-source-version linuxPackages.apfs "$latest_version_no_v_prefix" \
|
|
--version-key=tag
|