about summary refs log tree commit diff
path: root/pkgs/tools/misc/mimeo/default.nix
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2022-01-15 12:38:17 +0100
committerRobert Helgesson <robert@rycee.net>2022-01-15 19:06:56 +0100
commitd654246e6acdd40806b53d42aada4b21ab40fa14 (patch)
tree40759227c06f0eff740929ef18b48e71d84916d3 /pkgs/tools/misc/mimeo/default.nix
parent9f7f16789c729baf0ffd88c524a4bf50c716ae8f (diff)
mimeo: 2021.2 -> 2021.11
Also

- add install check and

- update download and homepage URLs.
Diffstat (limited to 'pkgs/tools/misc/mimeo/default.nix')
-rw-r--r--pkgs/tools/misc/mimeo/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/tools/misc/mimeo/default.nix b/pkgs/tools/misc/mimeo/default.nix
index d8e09e72f7350..46e0ce92809af 100644
--- a/pkgs/tools/misc/mimeo/default.nix
+++ b/pkgs/tools/misc/mimeo/default.nix
@@ -2,11 +2,11 @@
 
 python3Packages.buildPythonApplication rec {
   pname = "mimeo";
-  version = "2021.2";
+  version = "2021.11";
 
   src = fetchurl {
-    url = "https://xyne.archlinux.ca/projects/mimeo/src/${pname}-${version}.tar.xz";
-    sha256 = "113ip024ggajjdx0l406g6lwypdrddxz6k3640y6lzqjivcgybjf";
+    url = "https://xyne.dev/projects/mimeo/src/${pname}-${version}.tar.xz";
+    sha256 = "1fi8svn4hg2hmvv28j026sks1hc0v8wh974g7ixcwfcg2xda6c4p";
   };
 
   buildInputs = [ file desktop-file-utils ];
@@ -23,9 +23,14 @@ python3Packages.buildPythonApplication rec {
 
   installPhase = "install -Dm755 Mimeo.py $out/bin/mimeo";
 
+  doInstallCheck = true;
+  installCheckPhase = ''
+    $out/bin/mimeo --help > /dev/null
+  '';
+
   meta = with lib; {
     description = "Open files by MIME-type or file name using regular expressions";
-    homepage = "https://xyne.archlinux.ca/projects/mimeo/";
+    homepage = "https://xyne.dev/projects/mimeo/";
     license = [ licenses.gpl2 ];
     maintainers = [ maintainers.rycee ];
     platforms = platforms.unix;