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