Commit 17e9aca9 authored by OPNA2608's avatar OPNA2608
Browse files

libsidplayfp: nixfmt

parent 5bd0473a
Loading
Loading
Loading
Loading
+38 −40
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, makeFontsConf
, nix-update-script
, testers
, autoreconfHook
, docSupport ? true
, doxygen
, graphviz
, libexsid
, libgcrypt
, perl
, pkg-config
, unittest-cpp
, xa
{
  stdenv,
  lib,
  fetchFromGitHub,
  makeFontsConf,
  nix-update-script,
  testers,
  autoreconfHook,
  docSupport ? true,
  doxygen,
  graphviz,
  libexsid,
  libgcrypt,
  perl,
  pkg-config,
  unittest-cpp,
  xa,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -28,11 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-pW2B/KClCpfWQjZNQQnXPtXDJlm5NKb4ivPlFUI/vFA=";
  };

  outputs = [
    "out"
  ] ++ lib.optionals docSupport [
    "doc"
  ];
  outputs = [ "out" ] ++ lib.optionals docSupport [ "doc" ];

  postPatch = ''
    patchShebangs .
@@ -40,12 +37,14 @@ stdenv.mkDerivation (finalAttrs: {

  strictDeps = true;

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      autoreconfHook
      perl
      pkg-config
      xa
  ] ++ lib.optionals docSupport [
    ]
    ++ lib.optionals docSupport [
      doxygen
      graphviz
    ];
@@ -55,9 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
    libgcrypt
  ];

  checkInputs = [
    unittest-cpp
  ];
  checkInputs = [ unittest-cpp ];

  enableParallelBuilding = true;

@@ -69,18 +66,16 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  # Make Doxygen happy with the setup, reduce log noise
  FONTCONFIG_FILE = lib.optionalString docSupport (makeFontsConf { fontDirectories = [ ]; });
  FONTCONFIG_FILE = lib.optionalString docSupport (makeFontsConf {
    fontDirectories = [ ];
  });

  preBuild = ''
    # Reduce noise from fontconfig during doc building
    export XDG_CACHE_HOME=$TMPDIR
  '';

  buildFlags = [
    "all"
  ] ++ lib.optionals docSupport [
    "doc"
  ];
  buildFlags = [ "all" ] ++ lib.optionals docSupport [ "doc" ];

  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;

@@ -104,7 +99,10 @@ stdenv.mkDerivation (finalAttrs: {
    '';
    homepage = "https://github.com/libsidplayfp/libsidplayfp";
    license = with licenses; [ gpl2Plus ];
    maintainers = with maintainers; [ ramkromberg OPNA2608 ];
    maintainers = with maintainers; [
      ramkromberg
      OPNA2608
    ];
    platforms = platforms.all;
    pkgConfigModules = [
      "libsidplayfp"