14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
19 owner = "ucscGenomeBrowser";
21 rev = "v${version}_base";
22 hash = "sha256-OM/noraW2X8WV5wqWEFiI5/JPOBmsp0fTeDdcZoXxAA=";
25 buildInputs = [ libpng libuuid zlib bzip2 xz openssl curl libmysqlclient ];
28 substituteInPlace ./src/checkUmask.sh \
29 --replace "/bin/bash" "${bash}/bin/bash"
31 substituteInPlace ./src/hg/sqlEnvTest.sh \
32 --replace "which mysql_config" "${which}/bin/which ${libmysqlclient}/bin/mysql_config"
38 export MACHTYPE=$(uname -m)
40 export MYSQLINC=$(mysql_config --include | sed -e 's/^-I//g')
41 export MYSQLLIBS=$(mysql_config --libs)
43 export DESTBINDIR=$HOME/bin
45 mkdir -p $HOME/lib $HOME/bin/x86_64
48 chmod +x ./checkUmask.sh
55 cp ../lib/x86_64/jkOwnLib.a $HOME/lib
56 cp ../lib/x86_64/jkweb.a $HOME/lib
68 mkdir -p $out/bin $out/lib $out/inc
69 cp $HOME/lib/jkOwnLib.a $out/lib
70 cp $HOME/lib/jkweb.a $out/lib
71 cp $HOME/bin/x86_64/* $out/bin
72 cp -r $HOME/inc/* $out/inc/
78 description = "UCSC Genome Bioinformatics Group's suite of biological analysis tools, i.e. the kent utilities";
79 homepage = "http://genome.ucsc.edu";
80 changelog = "https://github.com/ucscGenomeBrowser/kent/releases/tag/v${version}_base";
81 license = licenses.unfree;
82 maintainers = with maintainers; [ scalavision ];
83 platforms = platforms.linux;