stellarium: add passthru.updateScript (#346147)

authored by

Colin and committed by
GitHub
d63375c7 782c1fad

+13 -9
+13 -9
pkgs/applications/science/astronomy/stellarium/default.nix
··· 22 22 , nlopt 23 23 , testers 24 24 , xvfb-run 25 + , gitUpdater 25 26 }: 26 27 27 28 stdenv.mkDerivation (finalAttrs: { ··· 95 96 qtWrapperArgs+=("''${gappsWrapperArgs[@]}") 96 97 ''; 97 98 98 - passthru.tests.version = testers.testVersion { 99 - package = finalAttrs.finalPackage; 100 - command = '' 101 - # Create a temporary home directory because stellarium aborts with an 102 - # error if it can't write some configuration files. 103 - tmpdir=$(mktemp -d) 99 + passthru = { 100 + tests.version = testers.testVersion { 101 + package = finalAttrs.finalPackage; 102 + command = '' 103 + # Create a temporary home directory because stellarium aborts with an 104 + # error if it can't write some configuration files. 105 + tmpdir=$(mktemp -d) 104 106 105 - # stellarium can't be run in headless mode, therefore we need xvfb-run. 106 - HOME="$tmpdir" ${xvfb-run}/bin/xvfb-run stellarium --version 107 - ''; 107 + # stellarium can't be run in headless mode, therefore we need xvfb-run. 108 + HOME="$tmpdir" ${lib.getExe xvfb-run} stellarium --version 109 + ''; 110 + }; 111 + updateScript = gitUpdater { rev-prefix = "v"; }; 108 112 }; 109 113 110 114 meta = {