guix.scm 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ;; Feuerkraft - A Tank Battle Game
  2. ;; Copyright (C) 2019 Ingo Ruhnke <grumbel@gmail.com>
  3. ;;
  4. ;; This program is free software: you can redistribute it and/or modify
  5. ;; it under the terms of the GNU General Public License as published by
  6. ;; the Free Software Foundation, either version 3 of the License, or
  7. ;; (at your option) any later version.
  8. ;;
  9. ;; This program is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;;
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. (set! %load-path
  17. (cons "/ipfs/QmcQaosGtaQ6dsb4iykNihZ2ZTie8om2i7pgHucZ9Ranyq/guix-cocfree_0.0.0-64-gd618440"
  18. %load-path))
  19. (use-modules (guix build utils)
  20. (guix build-system scons)
  21. (guix git-download)
  22. (guix gexp)
  23. ((guix licenses) #:prefix license:)
  24. (guix packages)
  25. (gnu packages compression)
  26. (gnu packages gl)
  27. (gnu packages pkg-config)
  28. (gnu packages swig)
  29. (gnu packages ruby)
  30. (guix-cocfree utils)
  31. (guix-cocfree packages clanlib))
  32. (define %source-dir (dirname (current-filename)))
  33. (define-public flexlay-classic
  34. (package
  35. (name "flexlay-classic")
  36. (version (version-from-source %source-dir))
  37. (source (local-file %source-dir
  38. #:recursive? #t
  39. #:select? (source-select-function %source-dir)))
  40. (build-system scons-build-system)
  41. (arguments
  42. `(#:phases
  43. (modify-phases
  44. %standard-phases
  45. (replace 'install
  46. (lambda* (#:key outputs #:allow-other-keys)
  47. (let* ((out (assoc-ref outputs "out")))
  48. (invoke "make" "install" (string-append "PREFIX=" out))))))))
  49. (native-inputs
  50. `(("pkg-config" ,pkg-config)))
  51. (inputs
  52. `(("clanlib-1.0" ,clanlib-1.0)
  53. ("mesa" ,mesa)
  54. ("glu" ,glu)
  55. ("swig" ,swig)
  56. ("ruby" ,ruby-2.5)
  57. ("zlib" ,zlib)))
  58. (synopsis "Generic 2d editor for games")
  59. (description "Flexlay is a generic 2d editor with special focus on games. It
  60. currently supports multi layered tile-, object- and bitmaps, full
  61. undo/redo, support for tile-brushes, easy copy/paste, multiple
  62. buffers, minimap support, a metadata editor and some other stuff
  63. usefull for creating levels for 2d games.
  64. flexlay-classic is an older version based on ClanLib that has support
  65. for netPanzer, which is currently missing in the latest version.")
  66. (home-page "https://gitlab.com/Flexlay/flexlay")
  67. (license license:gpl3+)))
  68. flexlay-classic
  69. ;; EOF ;;