Adding nix build instructions

This commit is contained in:
eeva 2018-11-12 20:34:51 +02:00
parent 3021e29b6c
commit 959f66099b
5 changed files with 54 additions and 6 deletions

4
README
View File

@ -1,4 +0,0 @@
OloNO is Not an Othello
-----------------------
Actually OloNO is an Othello game written in C with GTK+

20
README.md Normal file
View File

@ -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

7
default.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
{
olono-x11 = pkgs.callPackage ./olono_X11 {};
}

View File

@ -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
])

25
olono_X11/default.nix Normal file
View File

@ -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
'';
}