mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
27 lines
746 B
Nix
27 lines
746 B
Nix
{lib, stdenv, fetchurl, SDL, SDL_image, libGLU, libGL} :
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kobodeluxe";
|
|
version = "0.5.1";
|
|
src = fetchurl {
|
|
url = "http://olofson.net/kobodl/download/KoboDeluxe-${version}.tar.bz2";
|
|
sha256 = "0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c";
|
|
};
|
|
|
|
buildInputs = [ SDL SDL_image libGLU libGL ];
|
|
|
|
prePatch = ''
|
|
sed -e 's/char \*tok/const char \*tok/' -i graphics/window.cpp
|
|
'';
|
|
|
|
patches = [ ./glibc29.patch ];
|
|
|
|
meta = {
|
|
homepage = "http://olofson.net/kobodl/";
|
|
description = "Enhanced version of Akira Higuchi's game XKobo for Un*x systems with X11";
|
|
mainProgram = "kobodl";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|