mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
blueprint-compiler: wrap with required dependencies (#400415)
This commit is contained in:
commit
f149b2b05a
1 changed files with 14 additions and 2 deletions
|
@ -7,8 +7,10 @@
|
||||||
meson,
|
meson,
|
||||||
ninja,
|
ninja,
|
||||||
python3,
|
python3,
|
||||||
|
runCommand,
|
||||||
stdenv,
|
stdenv,
|
||||||
testers,
|
testers,
|
||||||
|
wrapGAppsNoGuiHook,
|
||||||
xvfb-run,
|
xvfb-run,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -30,6 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
|
wrapGAppsNoGuiHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -64,8 +67,17 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests = {
|
||||||
package = finalAttrs.finalPackage;
|
version = testers.testVersion {
|
||||||
|
package = finalAttrs.finalPackage;
|
||||||
|
};
|
||||||
|
# regression test that `blueprint-compiler` can be used in a standalone
|
||||||
|
# context outside of nix builds, and doesn't rely on the setup hooks of
|
||||||
|
# its propagated inputs for basic functionality.
|
||||||
|
# see https://github.com/NixOS/nixpkgs/pull/400415
|
||||||
|
standalone = runCommand "blueprint-compiler-test-standalone" { } ''
|
||||||
|
${lib.getExe finalAttrs.finalPackage} --help && touch $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue