mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +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
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
|
, pkg-config, cmake, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras
|
|
# Enable jack session support
|
|
, jackSession ? false
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
version = "0.9.0";
|
|
pname = "qjackctl";
|
|
|
|
# some dependencies such as killall have to be installed additionally
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rncbc";
|
|
repo = "qjackctl";
|
|
rev = "${pname}_${stdenv.lib.replaceChars ["."] ["_"] version}";
|
|
sha256 = "044kgwk7pfywad4myza0s2kvfkl21zkqq5wgny7n3c43qlcgs3zr";
|
|
};
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtx11extras
|
|
qttools
|
|
alsaLib
|
|
libjack2
|
|
dbus
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCONFIG_JACK_VERSION=1"
|
|
"-DCONFIG_JACK_SESSION=${toString jackSession}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Qt application to control the JACK sound server daemon";
|
|
homepage = "https://github.com/rncbc/qjackctl";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.goibhniu ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|