This commit is contained in:
Peder Bergebakken Sundt 2023-03-04 16:57:11 +01:00
parent 3290f2b004
commit f1785f12fa
3 changed files with 60 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ result
/configuration.nix /configuration.nix
/hardware-configuration.nix /hardware-configuration.nix
.direnv .direnv
.remote.toml

11
.remoteignore.toml Normal file
View File

@ -0,0 +1,11 @@
[push]
exclude = []
include = []
[pull]
exclude = ["*"]
include = []
[both]
exclude = [ ".remote.toml",]
include = []

48
pkgs/remote-exec.nix Normal file
View File

@ -0,0 +1,48 @@
{ lib
, fetchFromGitHub
, buildPythonApplication
# inputs
, click
, toml
, pydantic
, watchdog
# testing
, pytestCheckHook
, rsync
}:
buildPythonApplication rec {
pname = "remote-exec";
version = "1.11.0";
src = fetchFromGitHub {
owner = "remote-cli";
repo = "remote";
rev = "953b22b43adaadf8bbcd845f7a11e3cffae8ac6a";
hash = "sha256-yPiLTwToU1L9Hp/Ny7nDWUghCaqJzkh6GLVDd0N8x6g=";
};
propagatedBuildInputs = [
click
toml
pydantic
watchdog
];
# remove --cov from pytest
preCheck = ''
rm setup.cfg
'';
doCheck = true;
checkInputs = [
pytestCheckHook
rsync
];
meta = with lib; {
homepage = "https://github.com/remote-cli/remote";
description = "Work with remote hosts seamlessly via rsync and ssh. Code locally, build and execute remotely";
platform = platforms.all;
license = licenses.bsd2;
maintainers = with maintainers; [ pbsds ];
};
}