2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2014-10-06 09:36:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dadadodo";
|
2014-10-06 09:36:31 +00:00
|
|
|
version = "1.04";
|
2009-07-07 10:03:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://www.jwz.org/dadadodo/${pname}-${version}.tar.gz";
|
2009-07-07 10:03:26 +00:00
|
|
|
sha256 = "1pzwp3mim58afjrc92yx65mmgr1c834s1v6z4f4gyihwjn8bn3if";
|
|
|
|
};
|
|
|
|
|
2021-03-04 07:14:02 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
2014-10-06 09:36:31 +00:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2009-07-07 10:03:26 +00:00
|
|
|
cp dadadodo $out/bin
|
2014-10-06 09:36:31 +00:00
|
|
|
'';
|
|
|
|
|
2018-05-29 14:19:39 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2009-07-07 10:03:26 +00:00
|
|
|
description = "Markov chain-based text generator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.jwz.org/dadadodo";
|
2014-10-06 09:36:31 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2021-03-04 07:14:02 +00:00
|
|
|
platforms = platforms.all;
|
2009-07-07 10:03:26 +00:00
|
|
|
};
|
|
|
|
}
|