mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
croc: 10.0.11 -> 10.0.13 (#338918)
This commit is contained in:
commit
eac17593c1
@ -3,11 +3,11 @@ let
|
||||
client = { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.croc ];
|
||||
};
|
||||
pass = pkgs.writeText "pass" "PassRelay";
|
||||
pass = "PassRelay";
|
||||
in {
|
||||
name = "croc";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ hax404 julm ];
|
||||
maintainers = [ equirosa SuperSandro2000 ];
|
||||
};
|
||||
|
||||
nodes = {
|
||||
@ -38,12 +38,12 @@ in {
|
||||
sender.execute("echo Hello World > testfile01.txt")
|
||||
sender.execute("echo Hello Earth > testfile02.txt")
|
||||
sender.execute(
|
||||
"croc --pass ${pass} --relay relay send --code topSecret testfile01.txt testfile02.txt >&2 &"
|
||||
"env CROC_SECRET=topSecret croc --pass ${pass} --relay relay send testfile01.txt testfile02.txt >&2 &"
|
||||
)
|
||||
|
||||
# receive the testfiles and check them
|
||||
receiver.succeed(
|
||||
"croc --pass ${pass} --yes --relay relay topSecret"
|
||||
"env CROC_SECRET=topSecret croc --pass ${pass} --yes --relay relay"
|
||||
)
|
||||
assert "Hello World" in receiver.succeed("cat testfile01.txt")
|
||||
assert "Hello Earth" in receiver.succeed("cat testfile02.txt")
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "croc";
|
||||
version = "10.0.11";
|
||||
version = "10.0.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "schollz";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-vW67Q/11BPRHkDA1m99+PdxQUoylMt2sx6gZFEzgSNY=";
|
||||
hash = "sha256-GrdJAXHdkJYB+k2RexcCWhIhxY9UNY9IVJbzlLKDcKA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-eejDwlovkGLENvNywtFPmqKcwqr+HB+oURL/sDfhOuA=";
|
||||
vendorHash = "sha256-gTSc2mDNt7K954GXxUjjxPR0NkZwSTCjQDQ9x57ookw=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
@ -38,7 +38,7 @@ buildGoModule rec {
|
||||
'';
|
||||
homepage = "https://github.com/schollz/croc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hugoreeves equirosa SuperSandro2000 ];
|
||||
maintainers = with maintainers; [ equirosa SuperSandro2000 ];
|
||||
mainProgram = "croc";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user