depot/third_party/nixpkgs/pkgs/by-name/to/tonelib-metal/package.nix

68 lines
1.3 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
lib,
stdenv,
fetchurl,
autoPatchelfHook,
dpkg,
alsa-lib,
freetype,
libglvnd,
libgbm,
curl,
libXcursor,
libXinerama,
libXrandr,
libXrender,
libjack2,
}:
stdenv.mkDerivation rec {
pname = "tonelib-metal";
version = "1.3.0";
src = fetchurl {
url = "https://tonelib.vip/download/24-10-24/ToneLib-Metal-amd64.deb";
hash = "sha256-H19ZUOFI7prQJPo9NWWAHSOwpZ4RIbpRJHfQVjDp/VA=";
};
nativeBuildInputs = [
autoPatchelfHook
dpkg
];
runtimeDependencies = map lib.getLib [
curl
libXcursor
libXinerama
libXrandr
libXrender
libjack2
];
buildInputs = [
(lib.getLib stdenv.cc.cc)
alsa-lib
freetype
libglvnd
libgbm
] ++ runtimeDependencies;
installPhase = ''
runHook preInstall
cp -r usr $out
substituteInPlace $out/share/applications/ToneLib-Metal.desktop \
--replace-fail "/usr/" "$out/"
runHook postInstall
'';
meta = {
description = "ToneLib Metal Guitar amp simulator targeted at metal players";
homepage = "https://tonelib.net";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ dan4ik605743 ];
platforms = [ "x86_64-linux" ];
mainProgram = "ToneLib-Metal";
};
}