Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv
- , lib
- , dpkg
- # Package dependencies
- , fetchurl
- , fuse
- , curl
- , libevent
- , libsearpc
- , libuuid
- , openssl
- , sqlite
- }:
- let
- rpath = lib.makeLibraryPath [
- fuse
- curl
- libevent
- libsearpc
- libuuid
- openssl
- sqlite
- ];
- in stdenv.mkDerivation rec {
- version = "1.0.0";
- pname = "seadrive-daemon";
- name = "${pname}-${version}";
- src = fetchurl {
- url = "https://deb.seadrive.org/jessie/pool/main/s/seadrive-daemon/seadrive-daemon_1.0.0_amd64.deb";
- sha256 = "09nbgcgqzxdb4f1c6dw8azvhpcap88frc64da0d49f7lrikgd49l";
- };
- unpackCmd = "${dpkg}/bin/dpkg-deb -x $curSrc .";
- installPhase = ''
- mkdir --parent $out
- mv * $out/
- '';
- postFixup = ''
- find $out -executable -type f \
- | while read f
- do
- patchelf \
- --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
- --set-rpath "$out/lib:${rpath}" \
- "$f"
- done
- '';
- meta = {
- homepage = "https://www.seafile.com/en/home/";
- description = "The SeaDrive client enables you to access files on the Seafile server without syncing to local disk. It works like a network drive.";
- platforms = [ "x86_64-linux" ];
- license = stdenv.lib.licenses.unfree;
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement