You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package definitions should be written with callPackage if possible, rather than inline in flake.nix, since using package.nix makes them into small, composable, configurable, and portable units of software. Also, by using callPackage and writing in nixpkgs style, it becomes a lot easier to move packages between projects, and indeed to upstream them to nixpkgs, since they look and work a familiar way.
{# receives(*) pkgs.hello and pkgs.stdenvhello,stdenv,# can be overridden with `yourPackage.override { enableSomething = true; }`enableSomething ? false}:
stdenv.mkDerivation(finalAttrs: {# optional finalAttrs to refer to the set below; preferred over using `rec` attr sets# ...})
from here
The text was updated successfully, but these errors were encountered: