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