nixpkgs/pkgs/by-name/de/delayarchitect/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

41 lines
1.2 KiB
Nix

{ lib, stdenv, fetchFromGitHub, libGL, libX11, libXext, libXrandr, libXinerama, libXcursor, freetype, alsa-lib, cmake, pkg-config, gcc-unwrapped }:
stdenv.mkDerivation rec {
pname = "delayarchitect";
version = "unstable-2022-01-16";
src = fetchFromGitHub {
owner = "jpcima";
repo = "DelayArchitect";
rev = "5abf4dfb7f92ba604d591a2c388d2d69a9055fe3";
hash = "sha256-LoK2pYPLzyJF7tDJPRYer6gKHNYzvFvX/d99TuOPECo=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
libGL libX11 libXext libXrandr libXinerama libXcursor freetype alsa-lib
];
cmakeFlags = [
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
];
installPhase = ''
mkdir -p $out/lib/vst3
cd DelayArchitect_artefacts/Release
cp -r VST3/Delay\ Architect.vst3 $out/lib/vst3
'';
meta = with lib; {
homepage = "https://github.com/jpcima/DelayArchitect";
description = "Visual, musical editor for delay effects";
maintainers = [ maintainers.magnetophon ];
platforms = platforms.all;
license = licenses.gpl3Plus;
};
}