12 python3Packages.buildPythonApplication {
17 url = "https://xyne.dev/projects/mimeo/src/mimeo-${version}.tar.xz";
18 hash = "sha256-CahvSypwR1aHVDHTdtty1ZfaKBWPolxc73uZ5OyeqZA=";
26 propagatedBuildInputs = [ python3Packages.pyxdg ];
29 substituteInPlace Mimeo.py \
30 --replace "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \
31 "EXE_UPDATE_DESKTOP_DATABASE = '${desktop-file-utils}/bin/update-desktop-database'" \
32 --replace "EXE_FILE = 'file'" \
33 "EXE_FILE = '${file}/bin/file'"
36 installPhase = "install -Dm755 Mimeo.py $out/bin/mimeo";
38 doInstallCheck = true;
39 installCheckPhase = ''
40 $out/bin/mimeo --help > /dev/null
44 description = "Open files by MIME-type or file name using regular expressions";
45 homepage = "https://xyne.dev/projects/mimeo/";
46 license = [ licenses.gpl2Only ];
47 maintainers = [ maintainers.rycee ];
48 platforms = platforms.unix;
49 mainProgram = "mimeo";