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 , nlopt 23 , testers 24 , xvfb-run 25 }: 26 27 stdenv.mkDerivation (finalAttrs: { ··· 95 qtWrapperArgs+=("''${gappsWrapperArgs[@]}") 96 ''; 97 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) 104 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 - ''; 108 }; 109 110 meta = {
··· 22 , nlopt 23 , testers 24 , xvfb-run 25 + , gitUpdater 26 }: 27 28 stdenv.mkDerivation (finalAttrs: { ··· 96 qtWrapperArgs+=("''${gappsWrapperArgs[@]}") 97 ''; 98 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) 106 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"; }; 112 }; 113 114 meta = {