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
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, llvm, qt48Full, qrencode, libmicrohttpd_0_9_70, libjack2, alsaLib, faust, curl
|
|
, bc, coreutils, which, libsndfile, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "faustlive";
|
|
version = "2.5.4";
|
|
src = fetchFromGitHub {
|
|
owner = "grame-cncm";
|
|
repo = "faustlive";
|
|
rev = version;
|
|
sha256 = "0npn8fvq8iafyamq4wrj1k1bmk4xd0my2sp3gi5jdjfx6hc1sm3n";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [
|
|
llvm qt48Full qrencode libmicrohttpd_0_9_70 libjack2 alsaLib faust curl
|
|
bc coreutils which libsndfile pkg-config
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postPatch = "cd Build";
|
|
|
|
installPhase = ''
|
|
install -d "$out/bin"
|
|
install -d "$out/share/applications"
|
|
install FaustLive/FaustLive "$out/bin"
|
|
install rsrc/FaustLive.desktop "$out/share/applications"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A standalone just-in-time Faust compiler";
|
|
longDescription = ''
|
|
FaustLive is a standalone just-in-time Faust compiler. It tries to bring
|
|
together the convenience of a standalone interpreted language with the
|
|
efficiency of a compiled language. It's ideal for fast prototyping.
|
|
'';
|
|
homepage = "https://faust.grame.fr/";
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|