diff options
author | Will Dietz <w@wdtz.org> | 2019-08-19 14:10:54 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2019-08-19 19:30:44 -0500 |
commit | 21d599839c482fe421dc7136f5a16e8cde7d4c2c (patch) | |
tree | fb773e04e2dcd52e2984aaeeab96f4884bff4f81 /pkgs/servers/ttyd | |
parent | 9e421ad67436be55ba13266e52adb9c0f56aeab3 (diff) |
ttyd: 1.4.2_pre* -> 1.5.2
https://github.com/tsl0922/ttyd/releases/tag/1.5.2 https://github.com/tsl0922/ttyd/releases/tag/1.5.1 https://github.com/tsl0922/ttyd/releases/tag/1.5.0 https://github.com/tsl0922/ttyd/releases/tag/1.4.3 https://github.com/tsl0922/ttyd/releases/tag/1.4.2
Diffstat (limited to 'pkgs/servers/ttyd')
-rw-r--r-- | pkgs/servers/ttyd/default.nix | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/pkgs/servers/ttyd/default.nix b/pkgs/servers/ttyd/default.nix index bae43412e784a..3358973fc4eba 100644 --- a/pkgs/servers/ttyd/default.nix +++ b/pkgs/servers/ttyd/default.nix @@ -5,22 +5,16 @@ with builtins; -let - # ttyd hasn't seen a release in quite a while. remove all this - # junk when a new one happens (eventually) - revCount = 174; +stdenv.mkDerivation rec { + pname = "ttyd"; + version = "1.5.2"; src = fetchFromGitHub { - owner = "tsl0922"; - repo = "ttyd"; - rev = "6df6ac3e03b705ddd46109c2ac43a1cba439c0df"; - sha256 = "0g5jlfa7k6qd59ysdagczlhwgjfjspb3sfbd8b790hcil933qrxm"; + owner = "tsl0922"; + repo = pname; + rev = "refs/tags/${version}"; + sha256 = "16nngc3dqrsgpapzvl34c0msgdd1fyp3k8r1jj1m9bch6z2p50bl"; }; -in stdenv.mkDerivation rec { - name = "ttyd-${version}"; - version = "1.4.2_pre${toString revCount}_${substring 0 8 src.rev}"; - inherit src; - nativeBuildInputs = [ pkgconfig cmake xxd ]; buildInputs = [ openssl libwebsockets json_c libuv ]; enableParallelBuilding = true; |