git.iko.soy/typeable/nixpkgs
on master help sign in
mimeo: init at 2016.2
commit9206abe64238c06377fe463989a4105cfd78de07 authorRobert Helgesson <robert@rycee.net> dateSun 6 Mar 2016, 20:44 (11 years ago) parent78bfda9
2 files changed+35
pkgs/tools/misc/mimeo/default.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/mimeo/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl, desktop_file_utils, file, python3Packages }:
2+
3+python3Packages.buildPythonApplication rec {
4+ name = "mimeo-${version}";
5+ version = "2016.2";
6+
7+ src = fetchurl {
8+ url = "http://xyne.archlinux.ca/projects/mimeo/src/${name}.tar.xz";
9+ sha256 = "1y3a60983ind2cakjwxq3cgc76xhcdqz5lcpnyii34s6wviybkn1";
10+ };
11+
12+ buildInputs = [ file desktop_file_utils ];
13+
14+ propagatedBuildInputs = [ python3Packages.pyxdg ];
15+
16+ preConfigure = ''
17+ substituteInPlace Mimeo.py \
18+ --replace "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \
19+ "EXE_UPDATE_DESKTOP_DATABASE = '${desktop_file_utils}/bin/update-desktop-database'" \
20+ --replace "EXE_FILE = 'file'" \
21+ "EXE_FILE = '${file}/bin/file'"
22+ '';
23+
24+ installPhase = "install -Dm755 Mimeo.py $out/bin/mimeo";
25+
26+ meta = with stdenv.lib; {
27+ description = "Open files by MIME-type or file name using regular expressions";
28+ homepage = http://xyne.archlinux.ca/projects/mimeo/;
29+ license = [ licenses.gpl2 ];
30+ maintainers = [ maintainers.rycee ];
31+ platforms = platforms.unix;
32+ };
33+}
pkgs/top-level/all-packages.nix+2
@@ -2424,6 +2424,8 @@ let
24242424
24252425 mgba = qt5.callPackage ../misc/emulators/mgba { };
24262426
2427+ mimeo = callPackage ../tools/misc/mimeo { };
2428+
24272429 minissdpd = callPackage ../tools/networking/minissdpd { };
24282430
24292431 miniupnpc = callPackage ../tools/networking/miniupnpc { };