Unverified Commit e2c2d213 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

yajl: add bin & dev outputs (#482332)

parents 03e775aa d1a0864f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -31,6 +31,16 @@ stdenv.mkDerivation (finalAttrs: {
    tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
  };

  outputs = [
    "out"
    "bin"
    "dev"
  ];

  postFixup = ''
    moveToOutput bin "''${!outputBin}"
  '';

  meta = {
    description = "Yet Another JSON Library";
    longDescription = ''
+7 −0
Original line number Diff line number Diff line
@@ -479,6 +479,13 @@ in
    buildInputs = old.buildInputs ++ [
      yajl
    ];
    luarocksConfig = old.luarocksConfig // {
      variables = {
        # Since yajl's outputs are split, we need to help luarocks find the
        # include directory.
        YAJL_INCDIR = "${lib.getDev yajl}/include";
      };
    };
  });

  lua-zlib = prev.lua-zlib.overrideAttrs (old: {