Tidy nckx-maintained packages

- Use fetchFromGitHub when possible
- Build in parallel if supported
This commit is contained in:
Tobias Geerinckx-Rice
2015-04-08 02:29:42 +02:00
parent b97435e15f
commit 1926a7aa32
5 changed files with 26 additions and 16 deletions
+9 -5
View File
@@ -1,12 +1,14 @@
{ stdenv, fetchurl, autoreconfHook, gettext }:
{ stdenv, fetchFromGitHub, autoreconfHook, gettext }:
let version = "0.5.2"; in
stdenv.mkDerivation rec {
name = "duff-${version}";
version = "0.5.2";
src = fetchurl {
url = "https://github.com/elmindreda/duff/archive/${version}.tar.gz";
sha256 = "149dd80f9758085ed199c37aa32ad869409fa5e2c8da8a51294bd64ca886e058";
src = fetchFromGitHub {
sha256 = "0yfm910wjj6z0f0cg68x59ykf4ql5m49apzy8sra00f8kv4lpn53";
rev = version;
repo = "duff";
owner = "elmindreda";
};
buildInputs = [ autoreconfHook gettext ];
@@ -25,6 +27,8 @@ stdenv.mkDerivation rec {
-i configure.ac
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Quickly find duplicate files.";
homepage = http://duff.dreda.org/;