harec: expose qbe through passthru

harec and hare should always have the same qbe package. By exposing the
latter under harec's passthru attribute and using it as hare's qbe, we
assure that they will always hare the same qbe package even if there's a
need for a local overlay.
This commit is contained in:
Coutinho de Souza 2024-05-24 09:06:47 -03:00
parent e6c228544d
commit 3297bf3ba6
No known key found for this signature in database
GPG Key ID: 59081FCB8F9AABB5
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,6 @@
stdenv,
fetchFromSourcehut,
harec,
qbe,
gitUpdater,
scdoc,
tzdata,
@ -33,6 +32,7 @@ assert
'';
let
inherit (harec) qbe;
buildArch = stdenv.buildPlatform.uname.processor;
arch = stdenv.hostPlatform.uname.processor;
platform = lib.toLower stdenv.hostPlatform.uname.system;

View File

@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: {
passthru = {
updateScript = gitUpdater { };
# To be kept in sync with the hare package.
inherit qbe;
};
meta = {