nixpkgs/pkgs/applications/audio/qjackctl/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
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
2021-01-11 10:38:22 +01:00

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;
};
}