Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 962 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 tcl, 7 tk, 8 libX11, 9 zlib, 10}: 11 12tcl.mkTclDerivation rec { 13 pname = "scid"; 14 version = "5.0.2"; 15 16 src = fetchFromGitHub { 17 owner = "benini"; 18 repo = "scid"; 19 rev = "v${version}"; 20 hash = "sha256-5WGZm7EwhZAMKJKxj/OOIFOJIgPBcc6/Bh4xVAlia4Y="; 21 }; 22 23 postPatch = '' 24 substituteInPlace configure \ 25 --replace "set var(INSTALL) {install_mac}" "" 26 ''; 27 28 nativeBuildInputs = [ 29 makeWrapper 30 ]; 31 32 buildInputs = [ 33 tk 34 libX11 35 zlib 36 ]; 37 38 configureFlags = [ 39 "BINDIR=$(out)/bin" 40 "SHAREDIR=$(out)/share" 41 ]; 42 43 makeFlags = [ 44 "CC=${stdenv.cc.targetPrefix}cc" 45 ]; 46 47 enableParallelBuilding = true; 48 49 meta = { 50 description = "Chess database with play and training functionality"; 51 maintainers = with lib.maintainers; [ agbrooks ]; 52 homepage = "https://scid.sourceforge.net/"; 53 license = lib.licenses.gpl2Only; 54 platforms = lib.platforms.all; 55 }; 56}