mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
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
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, fltk
|
|
, jansson
|
|
, rtmidi
|
|
, libsamplerate
|
|
, libsndfile
|
|
, jack2
|
|
, alsaLib
|
|
, libpulseaudio
|
|
, libXpm
|
|
, libXinerama
|
|
, libXcursor
|
|
, catch2
|
|
, nlohmann_json
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "giada";
|
|
version = "0.16.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "monocasual";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0qyx0bvivlvly0vj5nnnbiks22xh13sqlw4mfgplq2lbbpgisigp";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--target=linux"
|
|
"--enable-system-catch"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
fltk
|
|
libsndfile
|
|
libsamplerate
|
|
jansson
|
|
rtmidi
|
|
libXpm
|
|
jack2
|
|
alsaLib
|
|
libpulseaudio
|
|
libXinerama
|
|
libXcursor
|
|
catch2
|
|
nlohmann_json
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i 's:"deps/json/single_include/nlohmann/json\.hpp":<nlohmann/json.hpp>:' \
|
|
src/core/{conf,init,midiMapConf,patch}.cpp
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A free, minimal, hardcore audio tool for DJs, live performers and electronic musicians";
|
|
homepage = "https://giadamusic.com/";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ petabyteboy ];
|
|
platforms = platforms.all;
|
|
broken = stdenv.hostPlatform.isAarch64; # produces build failure on aarch64-linux
|
|
};
|
|
}
|