Merge pull request #211819 from pbsds/rmate-init

rmate-sh: init at 1.0.2

authored by

Nick Cao and committed by
GitHub
a75eea18 7607aa2f

+56
+54
pkgs/tools/misc/rmate-sh/default.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , patsh 5 + , hostname 6 + }: 7 + 8 + stdenv.mkDerivation rec { 9 + pname = "rmate"; 10 + version = "1.0.2"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "aurora"; 14 + repo = pname; 15 + rev = "refs/tags/v${version}"; 16 + hash = "sha256-fmK6h9bqZ0zO3HWfZvPdYuZ6i/0HZ1CA3FUnkS+E9ns="; 17 + }; 18 + 19 + nativeBuildInputs = [ patsh ]; 20 + 21 + buildPhase = '' 22 + runHook preBuild 23 + 24 + substituteInPlace rmate \ 25 + --replace \ 26 + 'echo "hostname"' \ 27 + 'echo "${hostname}/bin/hostname"' 28 + patsh -f rmate -s ${builtins.storeDir} 29 + 30 + runHook preBuild 31 + ''; 32 + 33 + installPhase = '' 34 + runHook preInstall 35 + 36 + install -Dm755 rmate $out/bin/rmate 37 + 38 + runHook postInstall 39 + ''; 40 + 41 + meta = with lib; { 42 + description = "Remote TextMate 2 implemented as shell script"; 43 + longDescription = '' 44 + TextMate 2 has a nice feature where it is possible to edit 45 + files on a remote server using a helper script called 'rmate', 46 + which feeds the file back to the editor over a reverse tunnel. 47 + This is a rmate implementation in shell! 48 + ''; 49 + homepage = "https://github.com/aurora/rmate"; 50 + platforms = platforms.linux; 51 + license = licenses.gpl3; 52 + maintainers = with maintainers; [ pbsds ]; 53 + }; 54 + }
+2
pkgs/top-level/all-packages.nix
··· 5347 5348 rmapi = callPackage ../applications/misc/remarkable/rmapi { }; 5349 5350 rmview = libsForQt5.callPackage ../applications/misc/remarkable/rmview { }; 5351 5352 rm-improved = callPackage ../applications/misc/rm-improved { };
··· 5347 5348 rmapi = callPackage ../applications/misc/remarkable/rmapi { }; 5349 5350 + rmate-sh = callPackage ../tools/misc/rmate-sh { }; 5351 + 5352 rmview = libsForQt5.callPackage ../applications/misc/remarkable/rmview { }; 5353 5354 rm-improved = callPackage ../applications/misc/rm-improved { };