kubernetes-controller-tools: 0.17.1 -> 0.17.2 (#380899)
[NixPkgs.git] / pkgs / by-name / vg / vgmtrans / package.nix
blob33fb25677e7e0e9b44d3812e4340d5aa9e62f6dc
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch2,
6   cmake,
7   ninja,
8   qt6,
9   spdlog,
10   zlib-ng,
11   minizip-ng,
12   libbass,
13   libbassmidi,
15 stdenv.mkDerivation (finalAttrs: {
16   pname = "vgmtrans";
17   version = "1.2";
19   src = fetchFromGitHub {
20     owner = "vgmtrans";
21     repo = "vgmtrans";
22     tag = "v${finalAttrs.version}";
23     hash = "sha256-HVC45B1DFThZRkPVrroiay+9ufkOrTMUZoNIuC1CjjM=";
24   };
26   patches = [
27     # https://github.com/vgmtrans/vgmtrans/pull/567
28     (fetchpatch2 {
29       name = "fix-version-string.patch";
30       url = "https://github.com/vgmtrans/vgmtrans/commit/5ad8a60a19476d2ae9a7c409b83ab6d5e1ff827f.patch?full_index=1";
31       hash = "sha256-I5ykYzj3tUBQ2e3TAnCm5Ry1Hmmi2IVneFQCe5/JV/A=";
32     })
33   ];
35   nativeBuildInputs = [
36     cmake
37     ninja
38     qt6.wrapQtAppsHook
39   ];
41   buildInputs = [
42     qt6.qtbase
43     qt6.qtsvg
44     libbass
45     libbassmidi
46   ];
48   preConfigure = ''
49     rm -r lib/{spdlog,zlib-ng,minizip-ng}
50     ln -s ${spdlog.src} lib/spdlog
51     ln -s ${zlib-ng.src} lib/zlib-ng
52     ln -s ${minizip-ng.src} lib/minizip-ng
53   '';
55   meta = {
56     description = "Tool to convert proprietary, sequenced videogame music to industry-standard formats";
57     homepage = "https://github.com/vgmtrans/vgmtrans";
58     license = with lib.licenses; [
59       zlib
60       libpng
61       bsd3 # oki_adpcm_state
62     ];
63     # See CMakePresets.json
64     platforms = [
65       "x86_64-linux"
66       "x86_64-darwin"
67       "aarch64-darwin"
68       "x86_64-windows"
69       "aarch64-windows"
70     ];
71     maintainers = with lib.maintainers; [ pluiedev ];
72     mainProgram = "vgmtrans";
73   };