duperemove: get linuxHeaders from stdenv

Building against anything other than the headers used to build libc
doesn't really make any sense.

Also: this package is Linux specific, so mark it as such.
This commit is contained in:
Joachim Fasting 2016-05-09 19:28:24 +02:00
parent ec2ddf284d
commit e0c07070b1
No known key found for this signature in database
GPG Key ID: 4330820E1E04DCF4
2 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, libgcrypt
, pkgconfig, glib, linuxHeaders, sqlite }:
{ stdenv, fetchFromGitHub, libgcrypt
, pkgconfig, glib, linuxHeaders ? stdenv.cc.libc.linuxHeaders, sqlite }:
stdenv.mkDerivation rec {
name = "duperemove-${version}";
@ -16,11 +16,11 @@ stdenv.mkDerivation rec {
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
meta = {
meta = with stdenv.lib; {
description = "A simple tool for finding duplicated extents and submitting them for deduplication";
homepage = https://github.com/markfasheh/duperemove;
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ bluescreen303 thoughtpolice ];
platforms = lib.platforms.all;
license = licenses.gpl2;
maintainers = with maintainers; [ bluescreen303 thoughtpolice ];
platforms = platforms.linux;
};
}

View File

@ -759,9 +759,7 @@ in
dtrx = callPackage ../tools/compression/dtrx { };
duperemove = callPackage ../tools/filesystems/duperemove {
linuxHeaders = linuxHeaders_3_18;
};
duperemove = callPackage ../tools/filesystems/duperemove { };
dynamic-colors = callPackage ../tools/misc/dynamic-colors { };