drupal: write updater script (#422506)

authored by

Pol Dellaiera and committed by
GitHub
46b88e75 da33ae57

+8
+8
pkgs/by-name/dr/drupal/package.nix
··· 3 3 fetchFromGitLab, 4 4 php, 5 5 nixosTests, 6 + writeScript, 6 7 }: 7 8 8 9 php.buildComposerProject2 (finalAttrs: { ··· 24 25 tests = { 25 26 inherit (nixosTests) drupal; 26 27 }; 28 + updateScript = writeScript "update.sh" '' 29 + #!/usr/bin/env nix-shell 30 + #!nix-shell -i bash -p common-updater-scripts xmlstarlet 31 + set -eu -o pipefail 32 + version=$(curl -k --silent --globoff "https://updates.drupal.org/release-history/drupal/current" | xmlstarlet sel -t -v "project/releases/release[1]/tag") 33 + update-source-version drupal $version --file=./pkgs/by-name/dr/drupal/package.nix 34 + ''; 27 35 }; 28 36 29 37 meta = {