Skip to content

Commit

Permalink
*: unify version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric committed Jun 9, 2020
1 parent ab33933 commit 8bec962
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

## [Unreleased]
### Changed
- Versions are now for the whole of dapptools, rather than per-tool.
Accordingly, the old CHANGELOG files are superseded by this one.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
6 changes: 5 additions & 1 deletion src/seth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

stdenv.mkDerivation rec {
name = "seth-${version}";
version = "0.8.4";
version = lib.fileContents ../../VERSION;
src = ./.;

nativeBuildInputs = [makeWrapper];
Expand All @@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
else ""}
'';

postFixup = ''
sed -i s/VERSION_PLACEHOLDER/${version}/ $out/libexec/seth/seth---version
'';

meta = {
description = "Command-line client for talking to Ethereum nodes";
homepage = https://github.com/dapphub/dapptools/src/seth/;
Expand Down
6 changes: 3 additions & 3 deletions src/seth/libexec/seth/seth---version
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
cat <<.
seth 0.8.4
cat <<EOF
seth VERSION_PLACEHOLDER
Copyright (C) 2016, 2017 Daniel Brockman <[email protected]>
License: GNU GPL version 3 or later <https://gnu.org/licenses/gpl>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.
EOF

0 comments on commit 8bec962

Please sign in to comment.