summary refs log tree commit diff
path: root/pkgs/desktops/gnustep/gorm
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2016-08-16 20:51:27 +0000
committerMatthew Bauer <mjbauer95@gmail.com>2016-08-16 21:53:45 +0000
commit2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7 (patch)
tree14d2fcc8293f1992b98293e3283c4deab0e5b731 /pkgs/desktops/gnustep/gorm
parent63bd635f80a033581f4bfa5554b861cb90268792 (diff)
downloadnixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.tar
nixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.tar.gz
nixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.tar.bz2
nixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.tar.lz
nixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.tar.xz
nixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.tar.zst
nixlib-2e5edbfd99c4eb01cdb08e6735879701dbdc2fc7.zip
gnustep: move to pkgs/desktops/gnustep
Diffstat (limited to 'pkgs/desktops/gnustep/gorm')
-rw-r--r--pkgs/desktops/gnustep/gorm/default.nix17
-rw-r--r--pkgs/desktops/gnustep/gorm/fix-gs-makefiles.patch27
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/desktops/gnustep/gorm/default.nix b/pkgs/desktops/gnustep/gorm/default.nix
new file mode 100644
index 000000000000..5075ec5500c1
--- /dev/null
+++ b/pkgs/desktops/gnustep/gorm/default.nix
@@ -0,0 +1,17 @@
+{ fetchurl, base, back, gsmakeDerivation, gui }:
+let
+  version = "1.2.22";
+in
+gsmakeDerivation {
+  name = "gorm-${version}";
+  
+  src = fetchurl {
+    url = "ftp://ftp.gnustep.org/pub/gnustep/dev-apps/gorm-${version}.tar.gz";
+    sha256 = "1mq5n65xd9bc4kppx19iijsgpz4crvhg7bfwbi9k78j159vclnmi";
+  };
+  buildInputs = [ base back gui ];
+
+  meta = {
+    description = "Graphical Object Relationship Modeller is an easy-to-use interface designer for GNUstep";
+  };
+}
diff --git a/pkgs/desktops/gnustep/gorm/fix-gs-makefiles.patch b/pkgs/desktops/gnustep/gorm/fix-gs-makefiles.patch
new file mode 100644
index 000000000000..c4b3d1e1d815
--- /dev/null
+++ b/pkgs/desktops/gnustep/gorm/fix-gs-makefiles.patch
@@ -0,0 +1,27 @@
+diff -ru gorm-1.2.20/GNUmakefile gorm-1.2.20.patched/GNUmakefile
+--- gorm-1.2.20/GNUmakefile	2010-05-30 12:55:26.000000000 +0600
++++ gorm-1.2.20.patched/GNUmakefile	2014-12-10 22:21:18.000000000 +0600
+@@ -24,6 +24,23 @@
+ #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ #
+ 
++ifeq ($(GNUSTEP_MAKEFILES),)
++ GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null)
++  ifeq ($(GNUSTEP_MAKEFILES),)
++    $(warning )
++    $(warning Unable to obtain GNUSTEP_MAKEFILES setting from gnustep-config!)
++    $(warning Perhaps gnustep-make is not properly installed,)
++    $(warning so gnustep-config is not in your PATH.)
++    $(warning )
++    $(warning Your PATH is currently $(PATH))
++    $(warning )
++  endif
++endif
++
++ifeq ($(GNUSTEP_MAKEFILES),)
++  $(error You need to set GNUSTEP_MAKEFILES before compiling!)
++endif
++
+ PACKAGE_NAME = gorm
+ export PACKAGE_NAME
+ include $(GNUSTEP_MAKEFILES)/common.make