Commit fa2183cb authored by l1npengtul's avatar l1npengtul
Browse files

setbfree: 0.8.12 -> 0.8.13, add pkg maintainer l1npengtul

parent d7d3f1b5
Loading
Loading
Loading
Loading
+13 −16
Original line number Diff line number Diff line
@@ -13,28 +13,22 @@
  libGL,
  pkg-config,
  ttf_bitstream_vera,
  nix-update-script,
}:

stdenv.mkDerivation rec {
let
  version = "0.8.13";
in
stdenv.mkDerivation {
  pname = "setbfree";
  version = "0.8.12";
  inherit version;

  src = fetchFromGitHub {
    owner = "pantherb";
    repo = "setBfree";
    rev = "v${version}";
    hash = "sha256-e/cvD/CtT8dY1lYcsZ21DC8pNqKXqKfC/eRXX8k01eI=";
    hash = "sha256-jtiyJntaFnAVeC1Rvkzi3wNodyJpEQKgnOAP7++36wo=";
  };

  patches = [
    # link with -lGL can remove on next update
    (fetchpatch {
      name = "ui-add-lGL.patch";
      url = "https://github.com/pantherb/setBfree/commit/756437db43fbf5481f101d8fc695f8b11192047f.patch";
      hash = "sha256-49PYTayD4TchAApfFvj3DLc4EBTxH8LYx48TtdSRwwA=";
    })
  ];

  postPatch = ''
    substituteInPlace common.mak \
      --replace /usr/local "$out" \
@@ -65,14 +59,17 @@ stdenv.mkDerivation rec {

  enableParallelBuilding = true;

  meta = with lib; {
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "DSP tonewheel organ emulator";
    homepage = "https://setbfree.org";
    license = licenses.gpl2;
    license = lib.licenses.gpl2;
    platforms = [
      "x86_64-linux"
      "i686-linux"
    ]; # fails on ARM and Darwin
    maintainers = [ ];
    broken = stdenv.hostPlatform.isAarch64;
    maintainers = [ lib.maintainers.l1npengtul ];
  };
}