Unverified Commit ed373f9e authored by superherointj's avatar superherointj Committed by GitHub
Browse files

Merge pull request #334233 from superherointj/libs3-fix-cross

libs3: fix cross compilation, pkgs/by-name migration
parents eae26f8e e0b73075
Loading
Loading
Loading
Loading
+29 −7
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, fetchpatch, curl, libxml2 }:
{
  curl,
  fetchFromGitHub,
  fetchpatch,
  lib,
  libxml2,
  pkg-config,
  stdenv,
}:

stdenv.mkDerivation {
  pname = "libs3";
@@ -12,21 +20,35 @@ stdenv.mkDerivation {
  };

  patches = [
    (fetchpatch { # Fix compilation with openssl 3.0
    (fetchpatch {
      # Fix compilation with openssl 3.0
      url = "https://github.com/bji/libs3/pull/112/commits/3c3a1cf915e62b730db854d8007ba835cb38677c.patch";
      hash = "sha256-+rWRh8dOznHlamc/T9qbgN0E2Rww3Hn94UeErxNDccs=";
    })
  ];

  buildInputs = [ curl libxml2 ];
  postPatch = ''
    substituteInPlace GNUmakefile \
      --replace-fail curl-config "$PKG_CONFIG libcurl" \
      --replace-fail xml2-config "$PKG_CONFIG libxml-2.0"
  '';

  makeFlags = [ "DESTDIR=${placeholder "out"}" ];

  meta = with lib; {
    homepage = "https://github.com/bji/libs3";
  strictDeps = true;

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    curl
    libxml2
  ];

  meta = {
    description = "Library for interfacing with amazon s3";
    homepage = "https://github.com/bji/libs3";
    license = lib.licenses.lgpl3Plus;
    mainProgram = "s3";
    license = licenses.lgpl3Plus;
    platforms = platforms.linux;
    platforms = lib.platforms.linux;
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -22134,8 +22134,6 @@ with pkgs;
  librttopo = callPackage ../development/libraries/librttopo { };
  libs3 = callPackage ../development/libraries/libs3 { };
  libschrift = callPackage ../development/libraries/libschrift { };
  libsciter = callPackage ../development/libraries/libsciter { };