How to Add pkg-config file to a Nix Package?

Wow, that’s beautiful:

let
  pkgs = import <nixpkgs> {};
in
  pkgs.mkShell {
    buildInputs = with pkgs; [
        dbus
        webkitgtk
        openssl
    ];
    nativeBuildInputs = with pkgs; [
        pkg-config
    ];
    dbus = pkgs.dbus;
  }

I can’t believe it’s that easy.

8 Likes