≈ the.bay.news

`overrideAttrs` with `callPackage` does not respect module args

NixOS Discourse
`overrideAttrs` with `callPackage` does not respect module args
I have a module that has a default argument: # foo.nix { lib, fetchFromGitHub, arg1 ? "foo"; }: let isDefault = lib.warnIf (arg1 == "foo") "you are using default of `foo`" (arg1 == "foo"); in rustPlatform.buildRustPackage(finalAttrs: { pname = arg1; version = "1.0.0"; src = fetchFromGitHub { owner = "aaa"; repo = "bbb"; tag = version; hash = "sha256-aaaaa..."; }; }) Then a second module which invokes foo.nix: # bar.nix { foo, callPackage }: callPackage foo ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.