git-annex-remote-rclone: use stdenvNoCC

This commit is contained in:
Mario Rodas 2022-11-23 04:20:00 +00:00
parent 81e4301733
commit ed53711511

View File

@ -1,22 +1,20 @@
{ lib, stdenv, fetchFromGitHub, rclone, makeWrapper }: { lib, stdenvNoCC, fetchFromGitHub, rclone, makeWrapper }:
stdenv.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "git-annex-remote-rclone"; pname = "git-annex-remote-rclone";
version = "0.7"; version = "0.7";
rev = "v${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev;
owner = "DanielDent"; owner = "DanielDent";
repo = "git-annex-remote-rclone"; repo = "git-annex-remote-rclone";
rev = "v${version}";
sha256 = "sha256-H2C4zjM+kbC9qPl1F+bSnepuqANjZd1sz6XxOTkVVkU="; sha256 = "sha256-H2C4zjM+kbC9qPl1F+bSnepuqANjZd1sz6XxOTkVVkU=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/bin install -Dm755 -t $out/bin git-annex-remote-rclone
cp git-annex-remote-rclone $out/bin
wrapProgram "$out/bin/git-annex-remote-rclone" \ wrapProgram "$out/bin/git-annex-remote-rclone" \
--prefix PATH ":" "${lib.makeBinPath [ rclone ]}" --prefix PATH ":" "${lib.makeBinPath [ rclone ]}"
''; '';