1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

mimeo: init at 2016.2

This commit is contained in:
Robert Helgesson 2016-03-06 20:44:09 +01:00
parent 78bfda9cd6
commit 9206abe642
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ stdenv, fetchurl, desktop_file_utils, file, python3Packages }:
python3Packages.buildPythonApplication rec {
name = "mimeo-${version}";
version = "2016.2";
src = fetchurl {
url = "http://xyne.archlinux.ca/projects/mimeo/src/${name}.tar.xz";
sha256 = "1y3a60983ind2cakjwxq3cgc76xhcdqz5lcpnyii34s6wviybkn1";
};
buildInputs = [ file desktop_file_utils ];
propagatedBuildInputs = [ python3Packages.pyxdg ];
preConfigure = ''
substituteInPlace Mimeo.py \
--replace "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \
"EXE_UPDATE_DESKTOP_DATABASE = '${desktop_file_utils}/bin/update-desktop-database'" \
--replace "EXE_FILE = 'file'" \
"EXE_FILE = '${file}/bin/file'"
'';
installPhase = "install -Dm755 Mimeo.py $out/bin/mimeo";
meta = with stdenv.lib; {
description = "Open files by MIME-type or file name using regular expressions";
homepage = http://xyne.archlinux.ca/projects/mimeo/;
license = [ licenses.gpl2 ];
maintainers = [ maintainers.rycee ];
platforms = platforms.unix;
};
}

View file

@ -2424,6 +2424,8 @@ let
mgba = qt5.callPackage ../misc/emulators/mgba { };
mimeo = callPackage ../tools/misc/mimeo { };
minissdpd = callPackage ../tools/networking/minissdpd { };
miniupnpc = callPackage ../tools/networking/miniupnpc { };