diff --git a/nixos/tests/croc.nix b/nixos/tests/croc.nix index 5d709eb3d1cb..2e910f525261 100644 --- a/nixos/tests/croc.nix +++ b/nixos/tests/croc.nix @@ -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") diff --git a/pkgs/tools/networking/croc/default.nix b/pkgs/tools/networking/croc/default.nix index d719c3f9b06a..ce301d0e3416 100644 --- a/pkgs/tools/networking/croc/default.nix +++ b/pkgs/tools/networking/croc/default.nix @@ -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"; }; }