lol
0
fork

Configure Feed

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

at 16.09-beta 65 lines 2.2 kB view raw
1{stdenv, fetchurl, ncurses, openssl, flex, bison, less, miscfiles}: 2 3stdenv.mkDerivation { 4 name = "bsd-games-2.17"; 5 6 src = fetchurl { 7 url = ftp://metalab.unc.edu/pub/Linux/games/bsd-games-2.17.tar.gz; 8 sha256 = "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"; 9 }; 10 11 buildInputs = [ ncurses openssl flex bison ]; 12 13 patches = [ 14 (fetchurl { 15 url = http://svn.exactcode.de/t2/trunk/package/games/bsd-games/dm-noutmpx.patch; 16 sha256 = "1k3qp3jj0dksjr4dnppv6dvkwslrgk9c7p2n9vipqildpxgqp7w2"; 17 }) 18 ]; 19 20 hardeningDisable = [ "format" ]; 21 22 preConfigure = '' 23 cat > config.params << EOF 24 bsd_games_cfg_man6dir=$out/share/man/man6 25 bsd_games_cfg_man8dir=$out/share/man/man8 26 bsd_games_cfg_man5dir=$out/share/man/man5 27 bsd_games_cfg_wtf_acronymfile=$out/share/misc/acronyms 28 bsd_games_cfg_fortune_dir=$out/share/games/fortune 29 bsd_games_cfg_quiz_dir=$out/share/games/quiz 30 bsd_games_cfg_gamesdir=$out/bin 31 bsd_games_cfg_sbindir=$out/bin 32 bsd_games_cfg_usrbindir=$out/bin 33 bsd_games_cfg_libexecdir=$out/lib/games/dm 34 bsd_games_cfg_docdir=$out/share/doc/bsd-games 35 bsd_games_cfg_sharedir=$out/share/games 36 bsd_games_cfg_varlibdir=. 37 bsd_games_cfg_non_interactive=y 38 bsd_games_cfg_no_build_dirs="dab hack phantasia sail" 39 bsd_games_cfg_dictionary_src=${miscfiles}/share/web2 40 bsd_games_cfg_pager=${less} 41 EOF 42 43 sed -e s/getline/bsdgames_local_getline/g -i $(grep getline -rl .) 44 ''; 45 46 postConfigure = '' 47 sed -i -e 's,/usr,'$out, \ 48 -e "s,-o root -g root, ," \ 49 -e "s,-o root -g games, ," \ 50 -e "s,.*chown.*,true," \ 51 -e 's/INSTALL_VARDATA.*/INSTALL_VARDATA := true/' \ 52 -e 's/INSTALL_HACKDIR.*/INSTALL_HACKDIR := true/' \ 53 -e 's/INSTALL_DM.*/INSTALL_DM := true/' \ 54 -e 's/INSTALL_SCORE_FILE.*/INSTALL_SCORE_FILE := true/' \ 55 Makeconfig install-man 56 ''; 57 58 meta = { 59 homepage = "http://www.t2-project.org/packages/bsd-games.html"; 60 description = "Ports of all the games from NetBSD-current that are free"; 61 license = stdenv.lib.licenses.free; 62 maintainers = with stdenv.lib.maintainers; [viric]; 63 platforms = with stdenv.lib.platforms; linux; 64 }; 65}