summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/applications/office/homebank/default.nix30
1 files changed, 11 insertions, 19 deletions
diff --git a/pkgs/applications/office/homebank/default.nix b/pkgs/applications/office/homebank/default.nix
index 5ee14c81e94..50c80f65949 100644
--- a/pkgs/applications/office/homebank/default.nix
+++ b/pkgs/applications/office/homebank/default.nix
@@ -1,29 +1,21 @@
 { fetchurl, stdenv, gtk, pkgconfig, libofx, intltool, wrapGAppsHook
-, hicolor_icon_theme, libsoup}:
-
-let
-   download_root = "http://homebank.free.fr/public/";
-   name = "homebank-5.1.1";
-   lastrelease = download_root + name + ".tar.gz";
-   oldrelease = download_root + "old/" + name + ".tar.gz";
-in
-
-stdenv.mkDerivation {
-  inherit name;
+, hicolor_icon_theme, libsoup }:
 
+stdenv.mkDerivation rec {
+  name = "homebank-5.1.2";
   src = fetchurl {
-    urls = [ lastrelease oldrelease ];
-    sha256 = "1gd4b8fsq89w486mfrclw4r1nrgh7lxp4sncbgprbz9id7f6vlww";
+    url = "http://homebank.free.fr/public/${name}.tar.gz";
+    sha256 = "09zsq5l3s8cg4slhsyybsq8v1arnhh07i0rzka3j6ahysky15pfh";
   };
 
-  buildInputs = [ pkgconfig gtk libofx intltool hicolor_icon_theme
-   wrapGAppsHook libsoup ];
+  nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
+  buildInputs = [ gtk libofx intltool hicolor_icon_theme libsoup ];
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "Free, easy, personal accounting for everyone";
     homepage = http://homebank.free.fr/;
-    license = stdenv.lib.licenses.gpl2Plus;
-    maintainers = with stdenv.lib.maintainers; [viric];
-    platforms = with stdenv.lib.platforms; linux;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ viric pSub ];
+    platforms = platforms.linux;
   };
 }