lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 24.11-pre 59 lines 1.7 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch 2, SDL2, SDL2_image 3, pkg-config 4}: 5 6stdenv.mkDerivation rec { 7 pname = "klystrack"; 8 version = "1.7.6"; 9 10 src = fetchFromGitHub { 11 owner = "kometbomb"; 12 repo = pname; 13 rev = version; 14 fetchSubmodules = true; 15 sha256 = "1h99sm2ddaq483hhk2s3z4bjbgn0d2h7qna7l7qq98wvhqix8iyz"; 16 }; 17 18 buildInputs = [ 19 SDL2 SDL2_image 20 ]; 21 nativeBuildInputs = [ pkg-config ]; 22 23 patches = [ 24 (fetchpatch { 25 url = "https://github.com/kometbomb/klystrack/commit/bb537595d02140176831c4a1b8e9121978b32d22.patch"; 26 sha256 = "06gl9q0jwg039kpxb13lg9x0k59s11968qn4lybgkadvzmhxkgmi"; 27 }) 28 ]; 29 30 # Workaround build failure on -fno-common toolchains: 31 # ld: libengine_gui.a(gui_menu.o):(.bss+0x0): multiple definition of 32 # `menu_t'; objs.release/action.o:(.bss+0x20): first defined here 33 # TODO: remove it for 1.7.7+ release as it was fixed upstream. 34 env.NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 buildFlags = [ "PREFIX=${placeholder "out"}" "CFG=release" ]; 37 38 installPhase = '' 39 install -Dm755 bin.release/klystrack $out/bin/klystrack 40 41 mkdir -p $out/lib/klystrack 42 cp -R res $out/lib/klystrack 43 cp -R key $out/lib/klystrack 44 45 install -DT icon/256x256.png $out/share/icons/hicolor/256x256/apps/klystrack.png 46 mkdir -p $out/share/applications 47 substitute linux/klystrack.desktop $out/share/applications/klystrack.desktop \ 48 --replace "klystrack %f" "$out/bin/klystrack %f" 49 ''; 50 51 meta = with lib; { 52 description = "A chiptune tracker"; 53 homepage = "https://kometbomb.github.io/klystrack"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ suhr ]; 56 platforms = platforms.linux; 57 mainProgram = "klystrack"; 58 }; 59}