diff --git a/README b/README deleted file mode 100644 index 25337bd..0000000 --- a/README +++ /dev/null @@ -1,4 +0,0 @@ -OloNO is Not an Othello ------------------------ - -Actually OloNO is an Othello game written in C with GTK+ diff --git a/README.md b/README.md new file mode 100644 index 0000000..7738662 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +OloNO is Not an Othello +----------------------- + +Actually OloNO is an Othello game written in C with GTK+ + +For its 10th anniversary, this program's build was [nixed](https://nixos.org/nix). + +To build this program, you can either go the easy way, or the hard way: + +- easy way: get nix, and run: + nix build -f default olono-x11 +- hard way (for the X11 project): + - Run AUTO.sh + - Run configure + - Run make + - Hope nothing broke + +Love and kisses +-- +A much older dev diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..20d4832 --- /dev/null +++ b/default.nix @@ -0,0 +1,7 @@ +{ pkgs ? import {} }: + +{ + + olono-x11 = pkgs.callPackage ./olono_X11 {}; + +} diff --git a/olono_X11/configure.ac b/olono_X11/configure.ac index f381c33..59a4a08 100644 --- a/olono_X11/configure.ac +++ b/olono_X11/configure.ac @@ -31,7 +31,7 @@ AC_PROG_RANLIB dnl This is required if any libraries are built in the packa AC_STDC_HEADERS -PKG_CHECK_MODULES(DEPS, libglade-2.0 libgnomeui-2.0 >= 1.110.0) +PKG_CHECK_MODULES([DEPS], [libglade-2.0 libgnomeui-2.0 >= 1.110.0]) AC_SUBST(DEPS_CFLAGS) AC_SUBST(DEPS_LIBS) @@ -40,7 +40,7 @@ AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes) ### Attention : libs before the rest AC_CONFIG_FILES([ Makefile -src/Makefile +src/Makefile imgs/Makefile glade/Makefile ]) diff --git a/olono_X11/default.nix b/olono_X11/default.nix new file mode 100644 index 0000000..42c714c --- /dev/null +++ b/olono_X11/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, autoconf +, automake +, gnome2 +, gtk2 +, libtool +, pkgconfig +}: + +stdenv.mkDerivation { + name = "olono-x11"; + buildInputs = [ + autoconf + automake + gnome2.libglade + gnome2.libgnomeui + gtk2 + libtool + pkgconfig + ]; + src = ./.; + preConfigure = '' + ./AUTO.sh + ''; +}