summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorThomas Strobel <4ZKTUB6TEP74PYJOPWIR013S2AV29YUBW5F9ZH2F4D5UMJUJ6S@hash.domains>2017-02-27 11:03:39 +0100
committerThomas Strobel <4ZKTUB6TEP74PYJOPWIR013S2AV29YUBW5F9ZH2F4D5UMJUJ6S@hash.domains>2017-02-27 11:03:39 +0100
commiteb073e9cd9c0a8b8d6f7f1901def14afc89341e3 (patch)
tree80b6a9674f0f8589eba06276bdcc190caf0d9256 /pkgs
parent7864782d71b3653b7c50da492f5548b3cf3dc0ca (diff)
moneyplex: fix: add download link
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/office/moneyplex/default.nix30
1 files changed, 17 insertions, 13 deletions
diff --git a/pkgs/applications/office/moneyplex/default.nix b/pkgs/applications/office/moneyplex/default.nix
index 866fda59d713..4530305ee12e 100644
--- a/pkgs/applications/office/moneyplex/default.nix
+++ b/pkgs/applications/office/moneyplex/default.nix
@@ -1,26 +1,30 @@
-{ stdenv, requireFile, writeScript, patchelf, libredirect, coreutils, pcsclite
+{ stdenv, fetchurl, patchelf, libredirect, coreutils, pcsclite
, zlib, glib, gdk_pixbuf, gtk2, cairo, pango, libX11, atk, openssl }:
let
libPath = stdenv.lib.makeLibraryPath [
stdenv.cc.cc zlib glib gdk_pixbuf gtk2 cairo pango libX11 atk openssl
];
+
+ src_i686 = {
+ url = "http://www.matrica.com/download/distribution/moneyplex_16_install32_22424.tar.gz";
+ sha256 = "0yfpc6s85r08g796dycl378kagkma865vp7j72npia3hjc4vwamr";
+ };
+
+ src_x86_64 = {
+ url = "http://www.matrica.com/download/distribution/moneyplex_16_install64_22424.tar.gz";
+ sha256 = "03vxbg1yp8qyvcn6bw2a5s134nxzq9cn0vqbmlld7hh4knbsfqzw";
+ };
in
stdenv.mkDerivation rec {
name = "moneyplex-${version}";
- version = "1.0";
-
- src = requireFile {
- message = ''
- Unfortunately, Matrica does not provide an installable version of moneyplex.
- To work around, install moneyplex on another system, und delete the following files
- from the moneyplex installation directory: backups, mdaten, rup, Lnx\ Global.ali, Lnx\ Local ...ali
- and settings.ini, and then pack the folder into moneyplex-${version}.tar.gz.
- '';
- name = "moneyplex-${version}.tar.gz";
- sha256 = "0wpzwvhybjbqvqi8bpvkvcs3mikvl68gk1hzawihi0xnm28lcxw0";
- };
+ version = "16.0.22424";
+
+ src = fetchurl (if stdenv.system == "i686-linux" then src_i686
+ else if stdenv.system == "x86_64-linux" then src_x86_64
+ else throw "moneyplex requires i686-linux or x86_64-linux");
+
phases = [ "unpackPhase" "installPhase" "postInstall" ];