hardlink: update to latest version
This commit is contained in:
parent
b5416d6ed6
commit
63b87a116e
@ -1,33 +1,27 @@
|
||||
{ fetchurl, stdenv }:
|
||||
{ fetchurl, stdenv, unzip }:
|
||||
|
||||
let
|
||||
rev = "269cc6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=blob_plain;f=hardlink.c;hb=${rev}";
|
||||
sha256 = "721c54e653772e11bf0d30fb02aa21b96b147a1b68c0acb4f05cb87e7718bc12";
|
||||
name = "hardlink.c";
|
||||
};
|
||||
|
||||
man = fetchurl {
|
||||
url = "pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=blob_plain;f=hardlink.1;hb=${rev}";
|
||||
sha256 = "2f7e18a0259a2ceae316592e8b18bee525eb7e83fe3bb6b881e5dafa24747f2d";
|
||||
name = "hardlink.1";
|
||||
};
|
||||
rev = "3ec908d539";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "hardlink-2010.1.${rev}";
|
||||
name = "hardlink-2012.9.${rev}";
|
||||
|
||||
phases = ["buildPhase"];
|
||||
src = fetchurl {
|
||||
url = "pkgs.fedoraproject.org/cgit/hardlink.git/snapshot/hardlink-${rev}.zip";
|
||||
sha256 = "fea1803170b538d5fecf6a8d312ded1d25d516e9386a3797441a247487551647";
|
||||
name = "hardlink-${rev}.zip";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
gcc -O2 ${src} -o $out/bin/hardlink
|
||||
install -m 444 ${man} $out/share/man/man1/hardlink.1
|
||||
gcc -O2 hardlink.c -o $out/bin/hardlink
|
||||
mv hardlink.1 $out/share/man/man1/hardlink.1
|
||||
'';
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://pkgs.fedoraproject.org/gitweb/?p=hardlink.git;a=summary";
|
||||
homepage = "http://pkgs.fedoraproject.org/cgit/hardlink.git/";
|
||||
description = "consolidate duplicate files via hardlinks";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user