summary refs log tree commit diff
path: root/pkgs/applications/video/devede/default.nix
diff options
context:
space:
mode:
authorMichal Rus <m@michalrus.com>2017-03-05 14:48:22 +0100
committerMichal Rus <m@michalrus.com>2017-03-05 14:48:22 +0100
commit13a9059c5556a1fecc35dd6f2a7242e73b7c5b34 (patch)
treedc7cebe31f66b37990551344220df926d12cff6d /pkgs/applications/video/devede/default.nix
parent6011e3ea93e78e45dc2cb6cdf63afeb516670681 (diff)
downloadnixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.tar
nixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.tar.gz
nixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.tar.bz2
nixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.tar.lz
nixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.tar.xz
nixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.tar.zst
nixpkgs-13a9059c5556a1fecc35dd6f2a7242e73b7c5b34.zip
devede: 3.23.0 → 4.8.8
Diffstat (limited to 'pkgs/applications/video/devede/default.nix')
-rw-r--r--pkgs/applications/video/devede/default.nix33
1 files changed, 23 insertions, 10 deletions
diff --git a/pkgs/applications/video/devede/default.nix b/pkgs/applications/video/devede/default.nix
index 824ef9661b8..157e4903e52 100644
--- a/pkgs/applications/video/devede/default.nix
+++ b/pkgs/applications/video/devede/default.nix
@@ -1,23 +1,37 @@
-{ pkgs, stdenv, fetchurl, pythonPackages, ffmpeg, mplayer, vcdimager, cdrkit, dvdauthor }:
+{ pkgs, stdenv, fetchFromGitHub, python3Packages, ffmpeg, mplayer, vcdimager, cdrkit, dvdauthor
+, gtk3, gettext, wrapGAppsHook, gdk_pixbuf }:
 
 let
-  inherit (pythonPackages) dbus-python buildPythonApplication pygtk;
+  inherit (python3Packages) dbus-python buildPythonApplication pygobject3 urllib3;
 
 in buildPythonApplication rec {
-  name = "devede-3.23.0";
+  name = "devede-4.8.8";
   namePrefix = "";
 
-  src = fetchurl {
-    url = "http://www.rastersoft.com/descargas/${name}.tar.bz2";
-    sha256 = "9e217ca46f5f275cb0c3cadbe8c830fa1fde774c004bd95a343d1255be6f25e1";
+  src = fetchFromGitHub {
+    owner = "rastersoft";
+    repo = "devedeng";
+    rev = "c518683fbcd793aa92249e4fecafc3c3fea7da68";
+    sha256 = "0ncb8nykchrjlllbzfjpvirmfvfaps9qhilc56kvcw3nzqrnkx8q";
   };
 
-  buildInputs = [ ffmpeg ];
+  nativeBuildInputs = [
+    gettext wrapGAppsHook
+  ];
 
-  propagatedBuildInputs = [ pygtk dbus-python ffmpeg mplayer dvdauthor vcdimager cdrkit ];
+  buildInputs = [
+    ffmpeg
+  ];
+
+  propagatedBuildInputs = [
+    gtk3 pygobject3 gdk_pixbuf dbus-python ffmpeg mplayer dvdauthor vcdimager cdrkit urllib3
+  ];
 
   postPatch = ''
-    substituteInPlace devede --replace "/usr/share/devede" "$out/share/devede"
+    substituteInPlace setup.py --replace "'/usr'," ""
+    substituteInPlace src/devedeng/configuration_data.py \
+      --replace "/usr/share" "$out/share" \
+      --replace "/usr/local/share" "$out/share"
   '';
 
   meta = with stdenv.lib; {
@@ -25,6 +39,5 @@ in buildPythonApplication rec {
     homepage = http://www.rastersoft.com/programas/devede.html;
     license = licenses.gpl3;
     maintainers = [ maintainers.bdimcheff ];
-    broken = true;  # tarball is gone
   };
 }