Merge pull request #102027 from Vonfry/update/fortune-3.2.0

fortune-mod: 2.10.0 -> 3.2.0
This commit is contained in:
Daniël de Kok 2020-11-08 11:43:16 +01:00 committed by GitHub
commit 6519e0b796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fortune-mod"; pname = "fortune-mod";
version = "2.10.0"; version = "3.2.0";
# We use fetchurl instead of fetchFromGitHub because the release pack has some
# special files.
src = fetchurl { src = fetchurl {
url = "https://www.shlomifish.org/open-source/projects/fortune-mod/arcs/fortune-mod-${version}.tar.xz"; url = "https://github.com/shlomif/fortune-mod/releases/download/${pname}-${version}/${pname}-${version}.tar.xz";
sha256 = "07g50hij87jb7m40pkvgd47qfvv4s805lwiz79jbqcxzd7zdyax7"; sha256 = "0j554ja4min5rbqni8qn5gzk4xiyd643b8r50jyi32pcs88dwp7n";
}; };
nativeBuildInputs = [ cmake perl ]; nativeBuildInputs = [ cmake perl ];
@ -31,12 +33,13 @@ stdenv.mkDerivation rec {
) )
my_exe( my_exe(
-- --
'') ]; '') ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A program that displays a pseudorandom message from a database of quotations"; description = "A program that displays a pseudorandom message from a database of quotations";
license = licenses.bsdOriginal; license = licenses.bsdOriginal;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ vonfry ];
}; };
} }