summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-08-19 14:10:54 -0500
committerAustin Seipp <aseipp@pobox.com>2019-08-19 19:30:44 -0500
commit21d599839c482fe421dc7136f5a16e8cde7d4c2c (patch)
treefb773e04e2dcd52e2984aaeeab96f4884bff4f81
parent9e421ad67436be55ba13266e52adb9c0f56aeab3 (diff)
downloadnixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.tar
nixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.tar.gz
nixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.tar.bz2
nixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.tar.lz
nixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.tar.xz
nixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.tar.zst
nixpkgs-21d599839c482fe421dc7136f5a16e8cde7d4c2c.zip
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
-rw-r--r--pkgs/servers/ttyd/default.nix20
1 files changed, 7 insertions, 13 deletions
diff --git a/pkgs/servers/ttyd/default.nix b/pkgs/servers/ttyd/default.nix
index bae43412e78..3358973fc4e 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;