Skip to content
Snippets Groups Projects
tahoe-lafs.nix 1.43 KiB
Newer Older
  • Learn to ignore specific revisions
  • { fetchFromGitHub, nettools, pythonPackages, buildPythonPackage
    , twisted, foolscap, nevow, simplejson, zfec, pycryptopp, darcsver
    , setuptoolsTrial, setuptoolsDarcs, pycrypto, pyasn1, zope_interface
    , service-identity, pyyaml, magic-wormhole, treq, appdirs
    , eliot, autobahn
    }:
    
    buildPythonPackage rec {
      version = "1.14.0.dev";
      name = "tahoe-lafs-${version}";
    
        # HEAD of an integration branch for all of the storage plugin stuff.  Last
    
        # updated August 19th 2019.
        rev = "c37743ac82becc14a4ab066e73c4e77abf73d172";
        sha256 = "0f46j50arml2giwybaw630dfvrsxsakpsn1vkzcsgn8ai8vaccv1";
    
    
      postPatch = ''
        sed -i "src/allmydata/util/iputil.py" \
            -es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g"
    
        # Chroots don't have /etc/hosts and /etc/resolv.conf, so work around
        # that.
        for i in $(find src/allmydata/test -type f)
        do
          sed -i "$i" -e"s/localhost/127.0.0.1/g"
        done
    
        sed -i 's/"zope.interface.*"/"zope.interface"/' src/allmydata/_auto_deps.py
        sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py
      '';
    
    
      propagatedBuildInputs = with pythonPackages; [
    
        twisted foolscap nevow simplejson zfec pycryptopp darcsver
    
        setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 zope_interface
        service-identity pyyaml magic-wormhole treq appdirs