-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The haskell package set can contain non-Haskell packages, like Rust libraries. These are currently set using custom
option (but see #285) for better way, which is applied as the last option, but before buildFromSdist
. Thus, buildFromSdist
(because it is enabled by default since #286) will evaluate on these non-Haskell packages as well.
$ nix build github:shivaraj-bh/haskell-rust-ffi-template --override-input haskell-flake github:srid/haskell-flake/51bcbc27194e734a1524ac3d36e1539fba9a3baa
[..]
at /nix/store/fjvkr94j3lwca8y66zccn15rjwzqn0rd-source/pkgs/development/haskell-modules/lib/compose.nix:308:25:
307| */
308| buildFromSdist = pkg: overrideCabal (drv: {
| ^
309| src = "${sdistTarball pkg}/${pkg.pname}-${pkg.version}.tar.gz";
… while calling 'overrideCabal'
at /nix/store/fjvkr94j3lwca8y66zccn15rjwzqn0rd-source/pkgs/development/haskell-modules/lib/compose.nix:38:22:
37| */
38| overrideCabal = f: drv: (drv.override (args: args // {
| ^
39| mkDerivation = drv: (args.mkDerivation drv).override f;
error: attribute 'override' missing
at /nix/store/fjvkr94j3lwca8y66zccn15rjwzqn0rd-source/pkgs/development/haskell-modules/lib/compose.nix:38:28:
37| */
38| overrideCabal = f: drv: (drv.override (args: args // {
| ^
39| mkDerivation = drv: (args.mkDerivation drv).override f;
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working