Skip to content

Instantly share code, notes, and snippets.

@Drakonis
Created August 7, 2018 21:18
Show Gist options
  • Save Drakonis/d344efbf2b357936f17b4775e8077b8a to your computer and use it in GitHub Desktop.
Save Drakonis/d344efbf2b357936f17b4775e8077b8a to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub, rclone, qt5, cmake, makeWrapper }:
stdenv.mkDerivation rec {
name = "rclone-browser-${version}";
version = "1.2";
src = fetchFromGitHub {
owner = "mmozeiko";
repo = "RcloneBrowser";
rev = version;
sha256 = "1ldradd5c606mfkh46y4mhcvf9kbjhamw0gahksp9w43h5dh3ir7";
};
buildInputs = [ qt5.qtbase cmake makeWrapper rclone ];
installPhase = ''
mkdir -p $out/bin
cp $out/bin/rclone-browser $out/bin
makeWrapper ${rclone}/bin/rclone $out/bin/rclone
'';
meta = with stdenv.lib; {
description = "Graphical Frontend to Rclone written in Qt";
homepage = https://github.com/mmozeiko/RcloneBrowser;
license = licenses.unlicense;
platforms = platforms.all;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment