10 , useProprietaryAssets ? true
26 main_src = fetchFromGitHub {
30 sha256 = "09h9r65z8bar2z89s09j6px0gdq355kjf38rmd85xb2aqwnm6xig";
33 assets_src = requireFile {
34 name = "koboredux-${version}-Linux.tar.bz2";
35 sha256 = "11bmicx9i11m4c3dp19jsql0zy4rjf5a28x4hd2wl8h3bf8cdgav";
37 Please purchase the game on https://olofson.itch.io/kobo-redux
38 and download the Linux build.
40 Once you have downloaded the file, please use the following command
41 and re-run the installation:
43 nix-prefetch-url file://\$PWD/koboredux-${version}-Linux.tar.bz2
45 Alternatively, install the "koboredux-free" package, which replaces the
46 proprietary assets with a placeholder theme.
52 stdenv.mkDerivation rec {
53 inherit pname version;
55 src = [ main_src ] ++ optional useProprietaryAssets assets_src;
57 sourceRoot = main_src.name;
60 patches = [(fetchpatch {
61 url = "https://github.com/olofson/koboredux/commit/cf92b8a61d002ccaa9fbcda7a96dab08a681dee4.patch";
62 sha256 = "0dwhvis7ghf3mgzjd2rwn8hk3ndlgfwwcqaq581yc5rwd73v6vw4";
65 postPatch = optionalString useProprietaryAssets ''
66 cp -r ../koboredux-${version}-Linux/sfx/redux data/sfx/
67 cp -r ../koboredux-${version}-Linux/gfx/redux data/gfx/
68 cp -r ../koboredux-${version}-Linux/gfx/redux_fullscreen data/gfx/
83 description = "Frantic 80's style 2D shooter, similar to XKobo and Kobo Deluxe" +
84 optionalString (!useProprietaryAssets) " (built without proprietary assets)";
85 mainProgram = "kobord";
87 Kobo Redux is a frantic 80's style 2D shooter, inspired by the look and
88 feel of 90's arcade cabinets. The gameplay is fast and unforgiving,
89 although with less of the frustrating quirkiness of the actual games
90 of the 80's. A true challenge in the spirit of the arcade era!
91 '' + optionalString (!useProprietaryAssets) ''
93 This version replaces the official proprietary assets with placeholders.
94 For the full experience, consider installing "koboredux" instead.
96 homepage = "https://olofson.itch.io/kobo-redux";
97 license = with licenses; if useProprietaryAssets then unfree else gpl2Plus;
98 platforms = platforms.all;
99 maintainers = with maintainers; [ fgaz ];