Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

109 lines
1.9 KiB
Nix

{
alsa-lib,
at-spi2-core,
brotli,
cmake,
curl,
dbus,
libepoxy,
fetchFromGitHub,
libglut,
freetype,
gtk2-x11,
lib,
libGL,
libXcursor,
libXdmcp,
libXext,
libXinerama,
libXrandr,
libXtst,
libdatrie,
libjack2,
libpsl,
libselinux,
libsepol,
libsysprof-capture,
libthai,
libxkbcommon,
lv2,
pcre,
pkg-config,
python3,
sqlite,
stdenv,
util-linuxMinimal,
webkitgtk_4_0,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "chow-kick";
version = "1.2.0";
src = fetchFromGitHub {
owner = "Chowdhury-DSP";
repo = "ChowKick";
rev = "v${finalAttrs.version}";
hash = "sha256-YYcNiJGGw21aVY03tyQLu3wHCJhxYiDNJZ+LWNbQdj4=";
fetchSubmodules = true;
};
nativeBuildInputs = [
pkg-config
cmake
];
buildInputs = [
alsa-lib
at-spi2-core
brotli
curl
dbus
libepoxy
libglut
freetype
gtk2-x11
libGL
libXcursor
libXdmcp
libXext
libXinerama
libXrandr
libXtst
libdatrie
libjack2
libpsl
libselinux
libsepol
libsysprof-capture
libthai
libxkbcommon
lv2
pcre
python3
sqlite
util-linuxMinimal
webkitgtk_4_0
];
cmakeFlags = [
"-DCMAKE_AR=${stdenv.cc.cc}/bin/gcc-ar"
"-DCMAKE_RANLIB=${stdenv.cc.cc}/bin/gcc-ranlib"
];
installPhase = ''
mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin
cp -r ChowKick_artefacts/Release/LV2/ChowKick.lv2 $out/lib/lv2
cp -r ChowKick_artefacts/Release/VST3/ChowKick.vst3 $out/lib/vst3
cp ChowKick_artefacts/Release/Standalone/ChowKick $out/bin
'';
meta = with lib; {
homepage = "https://github.com/Chowdhury-DSP/ChowKick";
description = "Kick synthesizer based on old-school drum machine circuits";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.linux;
mainProgram = "ChowKick";
};
})