nixpkgs/pkgs/applications/video/devede/default.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, python3Packages, ffmpeg_3, mplayer, vcdimager, cdrkit, dvdauthor
2019-05-22 11:03:39 +00:00
, gtk3, gettext, wrapGAppsHook, gdk-pixbuf, gobject-introspection }:
2014-12-22 01:43:33 +00:00
let
inherit (python3Packages) dbus-python buildPythonApplication pygobject3 urllib3 setuptools;
2014-12-22 01:43:33 +00:00
2019-08-13 21:52:01 +00:00
in buildPythonApplication {
2017-03-05 13:48:22 +00:00
name = "devede-4.8.8";
2014-12-22 01:43:33 +00:00
namePrefix = "";
2017-03-05 13:48:22 +00:00
src = fetchFromGitHub {
owner = "rastersoft";
repo = "devedeng";
rev = "c518683fbcd793aa92249e4fecafc3c3fea7da68";
sha256 = "0ncb8nykchrjlllbzfjpvirmfvfaps9qhilc56kvcw3nzqrnkx8q";
2014-12-22 01:43:33 +00:00
};
2019-05-17 01:31:16 +00:00
# Temporary fix
# See https://github.com/NixOS/nixpkgs/issues/61578
# and https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
2017-03-05 13:48:22 +00:00
nativeBuildInputs = [
gettext wrapGAppsHook
2019-05-17 01:31:16 +00:00
# Temporary fix
# See https://github.com/NixOS/nixpkgs/issues/61578
# and https://github.com/NixOS/nixpkgs/issues/56943
gobject-introspection
2017-03-05 13:48:22 +00:00
];
2014-12-22 01:43:33 +00:00
2017-03-05 13:48:22 +00:00
buildInputs = [
ffmpeg_3
2017-03-05 13:48:22 +00:00
];
propagatedBuildInputs = [
gtk3 pygobject3 gdk-pixbuf dbus-python ffmpeg_3 mplayer dvdauthor vcdimager cdrkit urllib3 setuptools
2017-03-05 13:48:22 +00:00
];
2014-12-22 01:43:33 +00:00
postPatch = ''
2017-03-05 13:48:22 +00:00
substituteInPlace setup.py --replace "'/usr'," ""
substituteInPlace src/devedeng/configuration_data.py \
--replace "/usr/share" "$out/share" \
--replace "/usr/local/share" "$out/share"
2014-12-22 01:43:33 +00:00
'';
meta = with stdenv.lib; {
description = "DVD Creator for Linux";
homepage = "http://www.rastersoft.com/programas/devede.html";
2014-12-22 01:43:33 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.bdimcheff ];
};
}