nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 49 lines 1.2 kB view raw
1{ lib, stdenv, fetchFromGitHub, makeDesktopItem, ncurses, libX11, boost, cmake }: 2 3let 4 pname = "tome2"; 5 description = "A dungeon crawler similar to Angband, based on the works of Tolkien"; 6 7 desktopItem = makeDesktopItem { 8 desktopName = pname; 9 name = pname; 10 exec = "${pname}-x11"; 11 icon = pname; 12 comment = description; 13 type = "Application"; 14 categories = [ "Game" "RolePlaying" ]; 15 genericName = pname; 16 }; 17 18in stdenv.mkDerivation { 19 inherit pname; 20 version = "2.4"; 21 22 src = fetchFromGitHub { 23 owner = "tome2"; 24 repo = "tome2"; 25 rev = "4e6a906c80ff07b75a6acf4ff585b47303805e46"; 26 sha256 = "06bddj55y673d7bnzblk8n01z32l6k2rad3bpzr8dmw464hx4wwf"; 27 }; 28 29 buildInputs = [ ncurses libX11 boost ]; 30 31 nativeBuildInputs = [ cmake ]; 32 33 cmakeFlags = [ 34 "-DSYSTEM_INSTALL=ON" 35 ]; 36 37 postInstall = '' 38 mkdir -p $out/share/applications 39 cp ${desktopItem}/share/applications/*.desktop $out/share/applications 40 ''; 41 42 meta = with lib; { 43 inherit description; 44 license = licenses.unfree; 45 maintainers = with maintainers; [ cizra ]; 46 platforms = platforms.all; 47 homepage = "https://github.com/tome2/tome2"; 48 }; 49}