21 rustPlatform.buildRustPackage rec {
25 src = fetchFromGitHub {
26 owner = "hwittenborn";
29 hash = "sha256-U+2imF4hUDJAwwf/RFZXfOgTxA+O8c6C+CzQoEQreJw=";
32 cargoHash = "sha256-9DrJoXT/uD8y7y2r58DMuURSaic+TtlnPPbw/gq9jPA=";
35 pushd $cargoDepsCopy/librclone-sys
36 oldHash=$(sha256sum build.rs | cut -d " " -f 1)
37 patch -p2 < ${./librclone-path.patch}
38 substituteInPlace build.rs \
39 --subst-var-by librclone ${librclone}
40 substituteInPlace .cargo-checksum.json \
41 --replace $oldHash $(sha256sum build.rs | cut -d " " -f 1)
44 substituteInPlace justfile \
45 --replace "{{ env_var('DESTDIR') }}/usr" "${placeholder "out"}"
46 # buildRustPackage takes care of installing the binary
47 sed -i "#/bin/celeste#d" justfile
50 # Cargo.lock is outdated
52 cargo update --offline
60 rustPlatform.bindgenHook
78 --prefix PATH : "${lib.makeBinPath [ rclone ]}"
87 changelog = "https://github.com/hwittenborn/celeste/blob/${src.rev}/CHANGELOG.md";
88 description = "GUI file synchronization client that can sync with any cloud provider";
89 homepage = "https://github.com/hwittenborn/celeste";
90 license = lib.licenses.gpl3Only;
91 maintainers = with lib.maintainers; [ dotlambda ];