diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-06-13 15:11:28 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-06-13 15:14:22 -0700 |
commit | 068576042b3b58f8180b24a36c07199a1a3fd380 (patch) | |
tree | 85280fc1405549c6f00ac432125525fd124043cd /package.nix | |
parent | d194939ff55e352f069f15c15f63dbcf8b96138c (diff) |
packaging: Move binaryTarball to a passthru attr in package.nix
This is motivated by flakes being bad and all the stuff that calls
things by "system" being utterly unable to cope with cross compilation.
So if we go shove it in package.nix it is suddenly usable from cross
contexts.
Usage:
```
nix build -L .#nix-riscv64-linux.binaryTarball
```
Change-Id: I702ebf2ac5bd9d1c57662f968b000073134df336
Diffstat (limited to 'package.nix')
-rw-r--r-- | package.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package.nix b/package.nix index f65611ea6..ef6f317e8 100644 --- a/package.nix +++ b/package.nix @@ -376,8 +376,6 @@ stdenv.mkDerivation (finalAttrs: { platforms = lib.platforms.unix; }; - passthru.perl-bindings = pkgs.callPackage ./perl { inherit fileset stdenv; }; - # Export the patched version of boehmgc. # flake.nix exports that into its overlay. passthru = { @@ -509,5 +507,11 @@ stdenv.mkDerivation (finalAttrs: { ''; } ); + + perl-bindings = pkgs.callPackage ./perl { inherit fileset stdenv; }; + + binaryTarball = pkgs.callPackage ./nix-support/binary-tarball.nix { + nix = finalAttrs.finalPackage; + }; }; }) |