forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 141
guix: build docker images in the guix process #236
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
Open
Retropex
wants to merge
1
commit into
bitcoinknots:29.x-knots
Choose a base branch
from
Retropex:guix-docker
base: 29.x-knots
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| (define-module (bitcoin-knots) | ||
| #:use-module ((guix licenses) #:prefix license:) | ||
| #:use-module (guix packages) | ||
| #:use-module (guix git-download) | ||
| #:use-module (guix build-system cmake) | ||
| #:use-module (guix gexp) | ||
| #:use-module (guix utils) | ||
| #:use-module (gnu packages) | ||
| #:use-module (gnu packages bash) | ||
| #:use-module (gnu packages base) | ||
| #:use-module (gnu packages boost) | ||
| #:use-module (gnu packages libevent) | ||
| #:use-module (gnu packages networking) | ||
| #:use-module (gnu packages pkg-config) | ||
| #:use-module (gnu packages python) | ||
| #:use-module (gnu packages python-xyz) | ||
| #:use-module (gnu packages sqlite)) | ||
|
|
||
| (define-public bitcoin-knots | ||
| (package | ||
| (name "bitcoin-knots") | ||
| (version (getenv "VERSION")) | ||
| ; the source section is overrided by the guix-build script | ||
| (source (origin | ||
| (method git-fetch) | ||
| (uri (git-reference | ||
| (url "https://github.com/bitcoinknots/bitcoin") | ||
| (commit (string-append "v" version)))) | ||
| ; We use a fake hash because this scheme isn't supposed | ||
| ; to be builded outside the guix-build scipt | ||
| (sha256 #f))) | ||
| (build-system cmake-build-system) | ||
| (arguments | ||
| (list #:configure-flags | ||
| #~(list | ||
| "-DBUILD_GUI=OFF" | ||
| "-DBUILD_TESTS=ON" | ||
| "-DWITH_ZMQ=ON") | ||
| #:phases | ||
| #~(modify-phases %standard-phases | ||
| (add-before 'build 'set-no-git-flag | ||
| (lambda _ | ||
| ;; Make it clear we are not building from within a git repository | ||
| ;; (and thus no information regarding this build is available | ||
| ;; from git). | ||
| (setenv "BITCOIN_GENBUILD_NO_GIT" "1"))) | ||
| (add-before 'check 'set-home | ||
| (lambda _ | ||
| ;; Tests write to $HOME. | ||
| (setenv "HOME" (getenv "TMPDIR"))))))) | ||
| (native-inputs | ||
| (list bash ; provides the sh command for system_tests | ||
| coreutils ; provides the cat, echo and false commands for system_tests | ||
| pkg-config | ||
| python ; for the tests | ||
| python-pyzmq ; for the tests | ||
| )) | ||
| (inputs | ||
| (list boost | ||
| libevent | ||
| sqlite | ||
| zeromq)) | ||
| (home-page "https://bitcoinknots.org/") | ||
| (synopsis "Bitcoin peer-to-peer client") | ||
| (description | ||
| "Bitcoin is a digital currency that enables instant payments to anyone | ||
| anywhere in the world. It uses peer-to-peer technology to operate without | ||
| central authority: managing transactions and issuing money are carried out | ||
| collectively by the network. This package provides the Bitcoin Knots command | ||
| line client.") | ||
| (license license:expat))) | ||
|
|
||
| bitcoin-knots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| (define-module (channels)) | ||
| (use-modules (guix channels)) | ||
|
|
||
| (list (channel | ||
| (name 'guix) | ||
| (url "https://git.savannah.gnu.org/git/guix.git") | ||
| (branch "master") | ||
| (commit | ||
| "8eed773a70afa696b3b67ca49ee67257b8a44b03") | ||
| (introduction | ||
| (make-channel-introduction | ||
| "9edb3f66fd807b096b48283debdcddccfea34bad" | ||
| (openpgp-fingerprint | ||
| "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.