2012-09-25 15:35:54 +02:00
|
|
|
{ fetchurl, stdenv, unzip }:
|
2012-01-30 12:40:20 +01:00
|
|
|
|
|
|
|
let
|
2012-09-25 15:35:54 +02:00
|
|
|
rev = "3ec908d539";
|
2012-01-30 12:40:20 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2012-09-25 15:35:54 +02:00
|
|
|
name = "hardlink-2012.9.${rev}";
|
2012-01-30 12:40:20 +01:00
|
|
|
|
2012-09-25 15:35:54 +02:00
|
|
|
src = fetchurl {
|
2013-01-14 18:26:46 +01:00
|
|
|
url = "http://pkgs.fedoraproject.org/cgit/hardlink.git/snapshot/hardlink-${rev}.zip";
|
2012-09-25 15:35:54 +02:00
|
|
|
sha256 = "fea1803170b538d5fecf6a8d312ded1d25d516e9386a3797441a247487551647";
|
|
|
|
name = "hardlink-${rev}.zip";
|
|
|
|
};
|
2012-01-30 12:40:20 +01:00
|
|
|
|
2012-09-25 15:35:54 +02:00
|
|
|
installPhase = ''
|
2012-01-30 12:40:20 +01:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2012-09-25 15:35:54 +02:00
|
|
|
gcc -O2 hardlink.c -o $out/bin/hardlink
|
|
|
|
mv hardlink.1 $out/share/man/man1/hardlink.1
|
2012-01-30 12:40:20 +01:00
|
|
|
'';
|
|
|
|
|
2012-09-25 15:35:54 +02:00
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
2012-01-30 12:40:20 +01:00
|
|
|
meta = {
|
2012-09-25 15:35:54 +02:00
|
|
|
homepage = "http://pkgs.fedoraproject.org/cgit/hardlink.git/";
|
2012-01-30 12:40:20 +01:00
|
|
|
description = "consolidate duplicate files via hardlinks";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|