summary refs log tree commit diff
path: root/pkgs/tools/filesystems/svnfs/default.nix
blob: ebfb211732e8d95978a9b1279efcd7f16b28d15f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, automake, autoconf, subversion, fuse, apr, perl }: 

stdenv.mkDerivation {
  name = "svnfs-0.4";

  src = fetchurl {
    url = http://www.jmadden.eu/wp-content/uploads/svnfs/svnfs-0.4.tgz;
    sha256 = "1lrzjr0812lrnkkwk60bws9k1hq2iibphm0nhqyv26axdsygkfky";
  };

  buildInputs = [automake autoconf subversion fuse apr perl];

  # why is this required?
  preConfigure=''
    export LD_LIBRARY_PATH=${subversion.out}/lib
  '';

  NIX_CFLAGS_COMPILE="-I ${subversion.dev}/include/subversion-1";
  NIX_LDFLAGS="-lsvn_client-1 -lsvn_subr-1";

  meta = {
    description = "FUSE filesystem for accessing Subversion repositories";
    homepage = http://www.jmadden.eu/index.php/svnfs/;
    license = stdenv.lib.licenses.gpl2;
    maintainers = [stdenv.lib.maintainers.marcweber];
    platforms = stdenv.lib.platforms.linux;
  };
}