What’s the best workflow?
I want to build nixpkgs/pkgs/applications/science/math/lp_solve/default.nix at 9fa3b1ec2a7760c3ca69eebcff4485b1d03bb434 · NixOS/nixpkgs · GitHub. I downloaded the file, renamed it from default.nix
to lp_solve.nix
and tried building like this:
nix-build -I nixpkgs=channel:nixos-unstable -E 'with import <nixpkgs> {}; callPackage /path/to/lp_solve.nix {}'
Unfortunately, I get an erorr:
error: evaluation aborted with the following error message:
'lib.customisation.callPackageWith: Function called without required argument "autoSignDarwinBinariesHook" at /path/to/lp_solve.nix:7'
Is this the right way to build packages manually or am I doing it wrong?
My system
- system:
"x86_64-linux"
- host os:
Linux 6.15.1, NixOS, 25.05 (Warbler), 25.05.803579.70c74b02eac4
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.28.3
- channels(root):
"nixos-25.05, nixos-hardware"
- nixpkgs:
/nix/store/gdz4yp5sjq3b1q0g9ad9hicqsx1alvif-nixos-25.05/nixos