Skip to content

Commit 8bec962

Browse files
committed
*: unify version numbers
1 parent ab33933 commit 8bec962

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
### Changed
5+
- Versions are now for the whole of dapptools, rather than per-tool.
6+
Accordingly, the old CHANGELOG files are superseded by this one.

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

src/seth/default.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
stdenv.mkDerivation rec {
55
name = "seth-${version}";
6-
version = "0.8.4";
6+
version = lib.fileContents ../../VERSION;
77
src = ./.;
88

99
nativeBuildInputs = [makeWrapper];
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
1818
else ""}
1919
'';
2020

21+
postFixup = ''
22+
sed -i s/VERSION_PLACEHOLDER/${version}/ $out/libexec/seth/seth---version
23+
'';
24+
2125
meta = {
2226
description = "Command-line client for talking to Ethereum nodes";
2327
homepage = https://github.com/dapphub/dapptools/src/seth/;

src/seth/libexec/seth/seth---version

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
2-
cat <<.
3-
seth 0.8.4
2+
cat <<EOF
3+
seth VERSION_PLACEHOLDER
44
Copyright (C) 2016, 2017 Daniel Brockman <[email protected]>
55
License: GNU GPL version 3 or later <https://gnu.org/licenses/gpl>.
66
This is free software: you are free to change and redistribute it.
77
There is NO WARRANTY, to the extent permitted by law.
8-
.
8+
EOF

0 commit comments

Comments
 (0)