mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
d7bbcdf274
@ferdnyc has kindly provided a patch for our Nix-specific permission issue https://github.com/OpenShot/openshot-qt/issues/2972. Fixes https://github.com/NixOS/nixpkgs/issues/32898. Fixes https://github.com/NixOS/nixpkgs/issues/48591. Related to https://github.com/NixOS/nixpkgs/issues/55683.
62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
{ stdenv, mkDerivationWith, fetchFromGitHub, fetchpatch
|
|
, doxygen, python3Packages, libopenshot
|
|
, wrapGAppsHook, gtk3 }:
|
|
|
|
let
|
|
fixPermissions = fetchpatch rec {
|
|
url = https://github.com/OpenShot/openshot-qt/pull/2973.patch;
|
|
sha256 = "037rh0p3k4sdzprlpyb73byjq3qhqk5zd0d4iin6bq602r8bbp0n";
|
|
};
|
|
in
|
|
|
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
|
pname = "openshot-qt";
|
|
version = "2.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenShot";
|
|
repo = "openshot-qt";
|
|
rev = "v${version}";
|
|
sha256 = "0mg63v36h7l8kv2sgf6x8c1n3ygddkqqwlciz7ccxpbm4x1idqba";
|
|
};
|
|
|
|
patches = [ fixPermissions ];
|
|
|
|
nativeBuildInputs = [ doxygen wrapGAppsHook ];
|
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ libopenshot pyqt5_with_qtwebkit requests sip httplib2 pyzmq ];
|
|
|
|
dontWrapGApps = true;
|
|
dontWrapQtApps = true;
|
|
|
|
preConfigure = ''
|
|
# tries to create caching directories during install
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/openshot-qt \
|
|
"''${gappsWrapperArgs[@]}" \
|
|
"''${qtWrapperArgs[@]}"
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://openshot.org/;
|
|
description = "Free, open-source video editor";
|
|
longDescription = ''
|
|
OpenShot Video Editor is a free, open-source video editor for Linux.
|
|
OpenShot can take your videos, photos, and music files and help you
|
|
create the film you have always dreamed of. Easily add sub-titles,
|
|
transitions, and effects, and then export your film to DVD, YouTube,
|
|
Vimeo, Xbox 360, and many other common formats.
|
|
'';
|
|
license = with licenses; gpl3Plus;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|