mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
stellarium: add passthru.updateScript (#346147)
This commit is contained in:
commit
d63375c74f
@ -22,6 +22,7 @@
|
|||||||
, nlopt
|
, nlopt
|
||||||
, testers
|
, testers
|
||||||
, xvfb-run
|
, xvfb-run
|
||||||
|
, gitUpdater
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
@ -95,16 +96,19 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru = {
|
||||||
package = finalAttrs.finalPackage;
|
tests.version = testers.testVersion {
|
||||||
command = ''
|
package = finalAttrs.finalPackage;
|
||||||
# Create a temporary home directory because stellarium aborts with an
|
command = ''
|
||||||
# error if it can't write some configuration files.
|
# Create a temporary home directory because stellarium aborts with an
|
||||||
tmpdir=$(mktemp -d)
|
# error if it can't write some configuration files.
|
||||||
|
tmpdir=$(mktemp -d)
|
||||||
|
|
||||||
# stellarium can't be run in headless mode, therefore we need xvfb-run.
|
# stellarium can't be run in headless mode, therefore we need xvfb-run.
|
||||||
HOME="$tmpdir" ${xvfb-run}/bin/xvfb-run stellarium --version
|
HOME="$tmpdir" ${lib.getExe xvfb-run} stellarium --version
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
updateScript = gitUpdater { rev-prefix = "v"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user