4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, fetchpatch, alsaLib, expat, glib, libjack2, libXext, libX11, libpng
|
|
, libpthreadstubs, libsmf, libsndfile, lv2, pkgconfig, zita-resampler
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.18.1";
|
|
pname = "drumgizmo";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.drumgizmo.org/releases/${pname}-${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "0bpbkzcr3znbwfdk79c14n5k5hh80iqlk2nc03q95vhimbadk8k7";
|
|
};
|
|
|
|
patches = [
|
|
# Fix build for lv2 1.18.0
|
|
(fetchpatch {
|
|
url = "http://cgit.drumgizmo.org/plugingizmo.git/patch/?id=be64ddf9da525cd5c6757464efc966052731ba71";
|
|
sha256 = "17w8g78i5avssc7m8rpw64ka3rai8dff81wfzir9cpxp8s2h44qf";
|
|
extraPrefix = "plugin/plugingizmo/";
|
|
stripLen = 1;
|
|
})
|
|
];
|
|
|
|
configureFlags = [ "--enable-lv2" ];
|
|
|
|
buildInputs = [
|
|
alsaLib expat glib libjack2 libXext libX11 libpng libpthreadstubs
|
|
libsmf libsndfile lv2 pkgconfig zita-resampler
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An LV2 sample based drum plugin";
|
|
homepage = "https://www.drumgizmo.org";
|
|
license = licenses.lgpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.goibhniu maintainers.nico202 ];
|
|
};
|
|
}
|