From 494a52306aed9b26d2458dc56b50c225c542c64c Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Mon, 6 Oct 2014 11:36:31 +0200 Subject: [PATCH] dadadodo: adopt and cleanup expression --- pkgs/tools/text/dadadodo/default.nix | 34 ++++++++++------------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/pkgs/tools/text/dadadodo/default.nix b/pkgs/tools/text/dadadodo/default.nix index 1485bbcd467..b2ccc090313 100644 --- a/pkgs/tools/text/dadadodo/default.nix +++ b/pkgs/tools/text/dadadodo/default.nix @@ -1,32 +1,22 @@ -a : -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "dadadodo-${version}"; + version = "1.04"; - version = a.lib.attrByPath ["version"] "1.04" a; - buildInputs = with a; [ - - ]; -in -rec { src = fetchurl { - url = "http://www.jwz.org/dadadodo/dadadodo-${version}.tar.gz"; + url = "http://www.jwz.org/dadadodo/${name}.tar.gz"; sha256 = "1pzwp3mim58afjrc92yx65mmgr1c834s1v6z4f4gyihwjn8bn3if"; }; - inherit buildInputs; - configureFlags = []; - - /* doConfigure should be removed if not needed */ - phaseNames = ["doMake" "doDeploy"]; - installFlags = "PREFIX=$out"; - - doDeploy = a.fullDepEntry ('' + installPhase = '' mkdir -p $out/bin cp dadadodo $out/bin - '') [ "minInit" "doMake" "defEnsureDir"]; - - name = "dadadodo-" + version; - meta = { + ''; + + meta = with stdenv.lib; { description = "Markov chain-based text generator"; + homepage = http://www.jwz.org/dadadodo; + maintainers = with maintainers; [ pSub ]; }; }