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

restic: init at 0.5.0 #23942

Merged
merged 1 commit into from Mar 18, 2017
Merged

restic: init at 0.5.0 #23942

merged 1 commit into from Mar 18, 2017

Conversation

mbrgm
Copy link
Member

@mbrgm mbrgm commented Mar 15, 2017

Motivation for this change
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

sha256 = "0dj6zg4b00pwgs6nj7w5s0jxm6cfavd9kdcq0z4spypwdf211cgl";
};

buildPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

Did you tried to build it without default buildPhase/installPhase? It doesn't look like it needs custom ones.

Copy link
Member Author

Choose a reason for hiding this comment

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

Without the custom buildPhase, lots of errors like this one occur:

go/src/github.com/restic/restic/src/restic/repository/packer_manager.go:17:2: cannot find package "restic/pack" in any of:
	/tmp/nix-build-restic-0.5.0.drv-0/go/src/github.com/restic/restic/vendor/restic/pack (vendor tree)
	/nix/store/j8hhdgfxgavib7ng7d7kkqj2kpjrxprh-go-1.7.4/share/go/src/restic/pack (from $GOROOT)
	/tmp/nix-build-restic-0.5.0.drv-0/go/src/restic/pack (from $GOPATH)

Also, the project's build instructions say building should be done like I did in the custom buildPhase.

Without the custom installPhase, I'm getting

output ‘/nix/store/dc5i8lz5yfw6z7mp0187farpgmnj6vji-restic-0.5.0’ is not allowed to refer to path ‘/nix/store/j8hhdgfxgavib7ng7d7kkqj2kpjrxprh-go-1.7.4’

@7c6f434c 7c6f434c merged commit 4707ac3 into NixOS:master Mar 18, 2017
@mbrgm mbrgm deleted the restic branch May 30, 2017 12:32
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

4 participants