Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkgs/development/libraries/libgudev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
, gnome
, vala
, gobject-introspection
, fetchpatch
, glibcLocales
, umockdev
}:
Expand Down Expand Up @@ -46,6 +45,10 @@ stdenv.mkDerivation (finalAttrs: {
umockdev
];

mesonFlags = [
(lib.mesonEnable "tests" finalAttrs.finalPackage.doCheck)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just finalAttrs.doCheck?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk, finalAttrs.doCheck was still true and so didn't work, and I didn't look into it further 🤷🏻‍♀️

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it's because until it goes through mkDerivation, the doCheck attr still hasn't been transformed. It looks like finalAttrs is resolved after all overrides, but finalPackage is after the mkDerivationSimple transformations

];

doCheck = true;

passthru = {
Expand Down