nixpkgs/pkgs/os-specific/gnu/unionfs/default.nix
Ludovic Courtès 30c215a83a GNU: Add unionfs.
svn path=/nixpkgs/trunk/; revision=33054
2012-03-13 23:19:02 +00:00

43 lines
1,000 B
Nix

{ fetchgit, stdenv, hurd, machHeaders, mig }:
let
date = "20120313";
rev = "64dfa4e12d93c13b676d1cd7d86f4f4004ebfafa";
in
stdenv.mkDerivation rec {
name = "unionfs-${date}";
src = fetchgit {
url = "git://git.sv.gnu.org/hurd/unionfs.git";
sha256 = "1c3d71112cb25f8f82719a16df936e43abcb1adb77af96c1bb100a8ad0889d65";
inherit rev;
};
patchPhase =
'' sed -i "Makefile" \
-e 's|gcc|i586-pc-gnu-gcc|g ;
s|-std=gnu99|-std=gnu99 -fgnu89-inline|g'
'';
makeFlags = [ "CC=i586-pc-gnu-gcc" ];
buildInputs = [ hurd machHeaders mig ];
installPhase =
'' mkdir -p "$out/hurd"
cp -v unionfs "$out/hurd"
mkdir -p "$out/share/doc/${name}"
cp -v [A-Z]* "$out/share/doc/${name}"
'';
meta = {
description = "Union file system translator for GNU/Hurd";
homepage = http://www.gnu.org/software/hurd/hurd/translator/unionfs.html;
license = "GPLv2+";
maintainers = [ stdenv.lib.maintainers.ludo ];
};
}