Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tut: init at 0.0.2 #83299

Closed
wants to merge 1 commit into from
Closed

tut: init at 0.0.2 #83299

wants to merge 1 commit into from

Conversation

matthiasbeyer
Copy link
Contributor

Just saw this on reddit... if someone could give me a pointer with the error below... I'd finish this.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

$ nix-build -A tut
these derivations will be built:
  /nix/store/nmfz3rqvag3p1a509wx0rrbn4q1ggk3r-tut-0.0.2.drv 
building '/nix/store/nmfz3rqvag3p1a509wx0rrbn4q1ggk3r-tut-0.0.2.drv'...
unpacking sources
unpacking source archive /nix/store/fb13jd7gmk6dji255h3iigkr64hfd3vq-source
source root is source
patching sources
configuring       
building                    
go/src/github.com/RasmusLindroth/tut/config.go:6:2: cannot find package "github.com/gdamore/tcell" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/github.com/gdamore/tcell (from $GOROOT)
        /build/go/src/github.com/gdamore/tcell (from $GOPATH)
go/src/github.com/RasmusLindroth/tut/config.go:7:2: cannot find package "github.com/kyoh86/xdg" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/github.com/kyoh86/xdg (from $GOROOT)
        /build/go/src/github.com/kyoh86/xdg (from $GOPATH)
go/src/github.com/RasmusLindroth/tut/account.go:8:2: cannot find package "github.com/mattn/go-mastodon" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/github.com/mattn/go-mastodon (from $GOROOT)
        /build/go/src/github.com/mattn/go-mastodon (from $GOPATH)
go/src/github.com/RasmusLindroth/tut/util.go:14:2: cannot find package "github.com/microcosm-cc/bluemonday" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/github.com/microcosm-cc/bluemonday (from $GOROOT)
        /build/go/src/github.com/microcosm-cc/bluemonday (from $GOPATH)
go/src/github.com/RasmusLindroth/tut/account.go:9:2: cannot find package "github.com/pelletier/go-toml" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/github.com/pelletier/go-toml (from $GOROOT)
        /build/go/src/github.com/pelletier/go-toml (from $GOPATH)             
go/src/github.com/RasmusLindroth/tut/app.go:5:2: cannot find package "github.com/rivo/tview" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/github.com/rivo/tview (from $GOROOT)
        /build/go/src/github.com/rivo/tview (from $GOPATH)
go/src/github.com/RasmusLindroth/tut/util.go:16:2: cannot find package "golang.org/x/net/html" in any of:
        /nix/store/nha5hv6zzdixkdp6icz8319ylk0ii60n-go-1.14/share/go/src/golang.org/x/net/html (from $GOROOT)
        /build/go/src/golang.org/x/net/html (from $GOPATH)                                                             
builder for '/nix/store/nmfz3rqvag3p1a509wx0rrbn4q1ggk3r-tut-0.0.2.drv' failed with exit code 1
error: build of '/nix/store/nmfz3rqvag3p1a509wx0rrbn4q1ggk3r-tut-0.0.2.drv' failed

@@ -0,0 +1,24 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will want to use buildGoModule

{ stdenv, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "tut";
  version = "0.0.2";

  src = fetchFromGitHub {
    owner = "RasmusLindroth";
    repo = pname;
    rev = version;
    sha256 = "0c44mgkmjnfpf06cj63i6mscxcsm5cipm0l4n6pjxhc7k3qhgsfw";
  };

  modSha256 = "02xwf4l7860mfdbk8jikpf2g4p5ck760qnv1ka4qhxzizqqgcizv";

  meta = with stdenv.lib; {
    description = "TUI for Mastodon";
    homepage = "https://github.com/RasmusLindroth/tut";
    license = licenses.mit;
    maintainers = [ maintainers.matthiasbeyer ];
    platforms = platforms.unix;
  };
}

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@marsam
Copy link
Contributor

marsam commented Jun 28, 2020

addressed by #84218

@marsam marsam closed this Jun 28, 2020
@matthiasbeyer matthiasbeyer deleted the add-tut branch July 1, 2020 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants