forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
844 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
pkgs/applications/graphics/rapid-photo-downloader/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ stdenv, fetchurl, python3Packages | ||
, file, intltool, gobjectIntrospection, libgudev | ||
, udisks, glib, gnome3, gst_all_1, libnotify | ||
, exiv2, exiftool, qt5, gdk_pixbuf | ||
}: | ||
|
||
python3Packages.buildPythonApplication rec { | ||
pname = "rapid-photo-downloader"; | ||
version = "0.9.9"; | ||
|
||
src = fetchurl { | ||
url = "https://launchpad.net/rapid/pyqt/${version}/+download/${pname}-${version}.tar.gz"; | ||
sha256 = "193l55wdxwxmammyxwzp90sg0qw5r316443la3m9611sdpcmy8w3"; | ||
}; | ||
|
||
# Disable version check and fix install tests | ||
postPatch = '' | ||
substituteInPlace raphodo/constants.py \ | ||
--replace "disable_version_check = False" "disable_version_check = True" | ||
substituteInPlace raphodo/rescan.py \ | ||
--replace "from preferences" "from raphodo.preferences" | ||
substituteInPlace raphodo/copyfiles.py \ | ||
--replace "import problemnotification" "import raphodo.problemnotification" | ||
''; | ||
|
||
nativeBuildInputs = [ file intltool gobjectIntrospection ]; | ||
|
||
buildInputs = [ | ||
libgudev | ||
udisks | ||
glib | ||
gnome3.gexiv2 | ||
gst_all_1.gstreamer | ||
libnotify | ||
exiv2 | ||
exiftool | ||
qt5.qtimageformats | ||
gdk_pixbuf | ||
] ++ (with python3Packages; [ | ||
pyqt5 | ||
pygobject3 | ||
gphoto2 | ||
pyzmq | ||
tornado | ||
psutil | ||
pyxdg | ||
arrow | ||
dateutil | ||
easygui | ||
colour | ||
pymediainfo | ||
sortedcontainers | ||
rawkit | ||
requests | ||
colorlog | ||
pyprind | ||
]); | ||
|
||
makeWrapperArgs = [ | ||
"--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" | ||
"--set PYTHONPATH \"$PYTHONPATH\"" | ||
]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Photo and video importer for cameras, phones, and memory cards"; | ||
homepage = http://www.damonlynch.net/rapid/; | ||
license = licenses.gpl3; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ jfrankenau ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ stdenv, buildGoPackage, fetchurl, fetchFromGitHub, go-bindata }: | ||
|
||
let | ||
version = "1.4.10"; | ||
|
||
# TODO: must build the extension instead of downloading it. But since it's | ||
# literally an asset that is indifferent regardless of the platform, this | ||
# might be just enough. | ||
webext = fetchurl { | ||
url = "https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi"; | ||
sha256 = "0rgwzv1qahqy52q7zz4dklnwx7w4x3gj92ka8n0ypgf9fjjnmqas"; | ||
}; | ||
|
||
in buildGoPackage rec { | ||
inherit version; | ||
|
||
name = "browsh-${version}"; | ||
|
||
goPackagePath = "browsh"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "browsh-org"; | ||
repo = "browsh"; | ||
rev = "v${version}"; | ||
sha256 = "0lvb20zziknlbgy509ccpvlc21sqjc53xar26blmb6sdl6yqkj0w"; | ||
}; | ||
|
||
buildInputs = [ go-bindata ]; | ||
|
||
# embed the web extension in a go file and place it where it's supposed to | ||
# be. See | ||
# https://github.com/browsh-org/browsh/blob/9abc3aaa3f575ca6ec9a483408d9fdfcf76300fa/interfacer/contrib/xpi2bin.sh | ||
preBuild = '' | ||
xpiprefix="$(mktemp -d)" | ||
cp "${webext}" "$xpiprefix/browsh.xpi" | ||
go-bindata \ | ||
-prefix "$xpiprefix" \ | ||
-pkg browsh \ | ||
-o "$NIX_BUILD_TOP/go/src/${goPackagePath}/interfacer/src/browsh/webextension.go" \ | ||
"$xpiprefix/browsh.xpi" | ||
sed \ | ||
-e 's:Asset("/browsh.xpi"):Asset("browsh.xpi"):g' \ | ||
-i "$NIX_BUILD_TOP/go/src/${goPackagePath}/interfacer/src/browsh/firefox.go" | ||
''; | ||
|
||
postBuild = '' | ||
mv "$NIX_BUILD_TOP/go/bin/src" "$NIX_BUILD_TOP/go/bin/browsh" | ||
''; | ||
|
||
goDeps = ./deps.nix; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A fully-modern text-based browser, rendering to TTY and browsers"; | ||
homepage = https://www.brow.sh/; | ||
maintainers = [ maintainers.kalbasit ]; | ||
license = stdenv.lib.licenses.lgpl21; | ||
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; | ||
}; | ||
} |
Oops, something went wrong.