at 18.03-beta 34 lines 957 B view raw
1{ stdenv, fetchFromGitHub, scsh, rsync, unison }: 2 3stdenv.mkDerivation rec { 4 pname = "usync"; 5 version = "0.0.3"; 6 name = "${pname}-${version}"; 7 8 src = fetchFromGitHub { 9 owner = "ebzzry"; 10 repo = pname; 11 rev = "9c87ea8a707a47c3d7f6ef94d07591c5ab594282"; 12 sha256 = "1r05gw041fz9dkkb70zd6kqw9dd8dhpv87407qxqg43pd7x47kf4"; 13 }; 14 15 installPhase = '' 16 install -m 555 -Dt $out/bin $pname 17 ''; 18 19 postFixup = '' 20 substituteInPlace $out/bin/$pname --replace "/usr/bin/env scsh" "${scsh}/bin/scsh" 21 substituteInPlace $out/bin/$pname --replace "(rsync " "(${rsync}/bin/rsync " 22 substituteInPlace $out/bin/$pname --replace "(unison " "(${unison}/bin/unison " 23 ''; 24 25 meta = with stdenv.lib; { 26 homepage = https://github.com/ebzzry/usync; 27 description = "A simple site-to-site synchronization tool"; 28 license = licenses.mit; 29 maintainers = [ maintainers.ebzzry ]; 30 platforms = platforms.unix; 31 }; 32 33 dontBuild = true; 34}