Loading nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,7 @@ in invoiceplane = runTest ./invoiceplane.nix; iodine = runTest ./iodine.nix; iosched = runTest ./iosched.nix; ipget = runTest ./ipget.nix; ipv6 = runTest ./ipv6.nix; iscsi-multipath-root = runTest ./iscsi-multipath-root.nix; iscsi-root = runTest ./iscsi-root.nix; Loading nixos/tests/ipget.nix 0 → 100644 +28 −0 Original line number Diff line number Diff line { lib, ... }: { name = "ipget"; meta.maintainers = with lib.maintainers; [ Luflosi ]; nodes.machine = { config, pkgs, ... }: { services.kubo.enable = true; environment.systemPackages = with pkgs; [ ipget ]; }; testScript = '' start_all() with subtest("Add file to IPFS"): ipfs_hash = machine.succeed( "echo -n fnord | ipfs add --quieter" ) with subtest("Download the file with ipget"): machine.succeed(f"ipget --output file.txt /ipfs/{ipfs_hash}") contents = machine.succeed("cat file.txt") assert contents == "fnord", f"Unexpected file contents: {contents}" ''; } pkgs/by-name/ip/ipget/package.nix +11 −3 Original line number Diff line number Diff line Loading @@ -2,20 +2,22 @@ lib, buildGoModule, fetchFromGitHub, nixosTests, nix-update-script, }: buildGoModule rec { pname = "ipget"; version = "0.11.3"; version = "0.12.0"; src = fetchFromGitHub { owner = "ipfs"; repo = "ipget"; rev = "v${version}"; hash = "sha256-Q9rgbfPAdAulNuDQ1bXM08aK0IEerbsKqjK8aMnBwcM="; hash = "sha256-7/wXrjnd7YD2qhVvP0yBMJDkDZjxJC1vZcQuqVd44rU="; }; vendorHash = "sha256-2boqKf/7y/71ThNodUuZXaRHZadx+TU0d6swHHN1VyM="; vendorHash = "sha256-b6Lulzi7zgO0VdWboxi5Vibx8cjuZ6r6O1PJvYubZu4="; postPatch = '' # main module (github.com/ipfs/ipget) does not contain package github.com/ipfs/ipget/sharness/dependencies Loading @@ -24,6 +26,12 @@ buildGoModule rec { doCheck = false; passthru.tests = { inherit (nixosTests) ipget; }; passthru.updateScript = nix-update-script { }; meta = with lib; { description = "Retrieve files over IPFS and save them locally"; homepage = "https://ipfs.io/"; Loading pkgs/by-name/ku/kubo/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ buildGoModule rec { subPackages = [ "cmd/ipfs" ]; passthru.tests = { inherit (nixosTests) kubo; inherit (nixosTests) kubo ipget; repoVersion = callPackage ./test-repoVersion.nix { }; }; Loading Loading
nixos/tests/all-tests.nix +1 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,7 @@ in invoiceplane = runTest ./invoiceplane.nix; iodine = runTest ./iodine.nix; iosched = runTest ./iosched.nix; ipget = runTest ./ipget.nix; ipv6 = runTest ./ipv6.nix; iscsi-multipath-root = runTest ./iscsi-multipath-root.nix; iscsi-root = runTest ./iscsi-root.nix; Loading
nixos/tests/ipget.nix 0 → 100644 +28 −0 Original line number Diff line number Diff line { lib, ... }: { name = "ipget"; meta.maintainers = with lib.maintainers; [ Luflosi ]; nodes.machine = { config, pkgs, ... }: { services.kubo.enable = true; environment.systemPackages = with pkgs; [ ipget ]; }; testScript = '' start_all() with subtest("Add file to IPFS"): ipfs_hash = machine.succeed( "echo -n fnord | ipfs add --quieter" ) with subtest("Download the file with ipget"): machine.succeed(f"ipget --output file.txt /ipfs/{ipfs_hash}") contents = machine.succeed("cat file.txt") assert contents == "fnord", f"Unexpected file contents: {contents}" ''; }
pkgs/by-name/ip/ipget/package.nix +11 −3 Original line number Diff line number Diff line Loading @@ -2,20 +2,22 @@ lib, buildGoModule, fetchFromGitHub, nixosTests, nix-update-script, }: buildGoModule rec { pname = "ipget"; version = "0.11.3"; version = "0.12.0"; src = fetchFromGitHub { owner = "ipfs"; repo = "ipget"; rev = "v${version}"; hash = "sha256-Q9rgbfPAdAulNuDQ1bXM08aK0IEerbsKqjK8aMnBwcM="; hash = "sha256-7/wXrjnd7YD2qhVvP0yBMJDkDZjxJC1vZcQuqVd44rU="; }; vendorHash = "sha256-2boqKf/7y/71ThNodUuZXaRHZadx+TU0d6swHHN1VyM="; vendorHash = "sha256-b6Lulzi7zgO0VdWboxi5Vibx8cjuZ6r6O1PJvYubZu4="; postPatch = '' # main module (github.com/ipfs/ipget) does not contain package github.com/ipfs/ipget/sharness/dependencies Loading @@ -24,6 +26,12 @@ buildGoModule rec { doCheck = false; passthru.tests = { inherit (nixosTests) ipget; }; passthru.updateScript = nix-update-script { }; meta = with lib; { description = "Retrieve files over IPFS and save them locally"; homepage = "https://ipfs.io/"; Loading
pkgs/by-name/ku/kubo/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ buildGoModule rec { subPackages = [ "cmd/ipfs" ]; passthru.tests = { inherit (nixosTests) kubo; inherit (nixosTests) kubo ipget; repoVersion = callPackage ./test-repoVersion.nix { }; }; Loading