audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / hi / hivelytracker / package.nix
bloba6b687b208802691b2267abde74549dedd5ace3f
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   pkg-config,
6   SDL,
7   SDL_image,
8   SDL_ttf,
9   gtk3,
10   wrapGAppsHook3,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "hivelytracker";
15   version = "1.9";
17   src = fetchFromGitHub {
18     owner = "pete-gordon";
19     repo = "hivelytracker";
20     rev = "V${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
21     sha256 = "148p320sd8phcpmj4m85ns5zly2dawbp8kgx9ryjfdk24pa88xg6";
22   };
24   nativeBuildInputs = [
25     pkg-config
26     wrapGAppsHook3
27   ];
29   buildInputs = [
30     SDL
31     SDL_image
32     SDL_ttf
33     gtk3
34   ];
36   makeFlags = [
37     "-C sdl"
38     "-f Makefile.linux"
39     "PREFIX=$(out)"
40   ];
42   # Also build the hvl2wav tool
43   postBuild = ''
44     make -C hvl2wav
45   '';
47   postInstall = ''
48     # Also install the hvl2wav tool
49     install -Dm755 hvl2wav/hvl2wav $out/bin/hvl2wav
50   '';
52   meta = with lib; {
53     homepage = "http://www.hivelytracker.co.uk/";
54     downloadPage = "http://www.hivelytracker.co.uk/downl.php";
55     description = "Chip music tracker based upon the AHX format";
56     longDescription = ''
57       Hively Tracker is a tracker program based upon the AHX format created in
58       the mid '90s by Dexter and Pink of Abyss. The format was relatively
59       popular, and many songs were created and used in scene productions and
60       games. AHX was designed to create a very SID-like sound on the Amiga.
62       HivelyTracker can import and export modules and instruments in the AHX
63       format, but it also improves on AHX in several ways and therefore has
64       its own instrument and module formats.
65     '';
66     license = licenses.bsd3;
67     platforms = platforms.all;
68     mainProgram = "hivelytracker";
69     maintainers = with maintainers; [ fgaz ];
70     broken = stdenv.hostPlatform.isDarwin; # TODO: try to use xcbuild
71   };