Will Dietz 2019-08-19 14:10:54 -05:00 committed by Austin Seipp
parent 9e421ad674
commit 21d599839c

View File

@ -5,22 +5,16 @@
with builtins; with builtins;
let stdenv.mkDerivation rec {
# ttyd hasn't seen a release in quite a while. remove all this pname = "ttyd";
# junk when a new one happens (eventually) version = "1.5.2";
revCount = 174;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tsl0922"; owner = "tsl0922";
repo = "ttyd"; repo = pname;
rev = "6df6ac3e03b705ddd46109c2ac43a1cba439c0df"; rev = "refs/tags/${version}";
sha256 = "0g5jlfa7k6qd59ysdagczlhwgjfjspb3sfbd8b790hcil933qrxm"; 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 ]; nativeBuildInputs = [ pkgconfig cmake xxd ];
buildInputs = [ openssl libwebsockets json_c libuv ]; buildInputs = [ openssl libwebsockets json_c libuv ];
enableParallelBuilding = true; enableParallelBuilding = true;