···
4
+
writableTmpDirAsHomeHook,
···
16
-
stdenv.mkDerivation rec {
20
+
stdenv.mkDerivation (finalAttrs: {
owner = "ucscGenomeBrowser";
23
-
rev = "v${version}_base";
24
-
hash = "sha256-OM/noraW2X8WV5wqWEFiI5/JPOBmsp0fTeDdcZoXxAA=";
27
+
tag = "v${finalAttrs.version}_base";
28
+
hash = "sha256-NffQ04+5rMtG/VI7YFK4Ff39DDhdh9Wlc0i1iVbg8Js=";
31
+
nativeBuildInputs = [ writableTmpDirAsHomeHook ];
···
substituteInPlace ./src/checkUmask.sh \
40
-
--replace "/bin/bash" "${bash}/bin/bash"
46
+
--replace-fail "/bin/bash" "${bash}/bin/bash"
substituteInPlace ./src/hg/sqlEnvTest.sh \
43
-
--replace "which mysql_config" "${which}/bin/which ${libmysqlclient}/bin/mysql_config"
49
+
--replace-fail "which mysql_config" "${which}/bin/which ${libmysqlclient}/bin/mysql_config"
···
export MYSQLINC=$(mysql_config --include | sed -e 's/^-I//g')
export MYSQLLIBS=$(mysql_config --libs)
export DESTBINDIR=$HOME/bin
mkdir -p $HOME/lib $HOME/bin/${stdenv.hostPlatform.parsed.cpu.name}
···
93
+
passthru.updateScript = writeShellScript "update-kent" ''
94
+
latestVersion=$(curl ''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} --fail --silent https://api.github.com/repos/ucscGenomeBrowser/kent/releases/latest | ${lib.getExe jq} --raw-output .tag_name | grep -oP '(?<=v)\d+')
95
+
${lib.getExe nix-update} kent --version $latestVersion
description = "UCSC Genome Bioinformatics Group's suite of biological analysis tools, i.e. the kent utilities";
homepage = "http://genome.ucsc.edu";
91
-
changelog = "https://github.com/ucscGenomeBrowser/kent/releases/tag/v${version}_base";
101
+
changelog = "https://github.com/ucscGenomeBrowser/kent/releases/tag/v${finalAttrs.version}_base";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ scalavision ];
platforms = lib.platforms.linux;