kent: use finalAttrs and tag and writableTmpDirAsHomeHook

kyehn bf210e08 27070759

+9 -7
+9 -7
pkgs/by-name/ke/kent/package.nix
··· 1 { 2 lib, 3 stdenv, 4 libpng, 5 libuuid, 6 zlib, ··· 16 jq, 17 nix-update, 18 }: 19 - stdenv.mkDerivation rec { 20 pname = "kent"; 21 version = "486"; 22 23 src = fetchFromGitHub { 24 owner = "ucscGenomeBrowser"; 25 repo = "kent"; 26 - rev = "v${version}_base"; 27 hash = "sha256-NffQ04+5rMtG/VI7YFK4Ff39DDhdh9Wlc0i1iVbg8Js="; 28 }; 29 30 buildInputs = [ 31 libpng ··· 40 41 postPatch = '' 42 substituteInPlace ./src/checkUmask.sh \ 43 - --replace "/bin/bash" "${bash}/bin/bash" 44 45 substituteInPlace ./src/hg/sqlEnvTest.sh \ 46 - --replace "which mysql_config" "${which}/bin/which ${libmysqlclient}/bin/mysql_config" 47 ''; 48 49 buildPhase = '' ··· 53 export CFLAGS="-fPIC" 54 export MYSQLINC=$(mysql_config --include | sed -e 's/^-I//g') 55 export MYSQLLIBS=$(mysql_config --libs) 56 - export HOME=$TMPDIR 57 export DESTBINDIR=$HOME/bin 58 59 mkdir -p $HOME/lib $HOME/bin/${stdenv.hostPlatform.parsed.cpu.name} ··· 96 meta = { 97 description = "UCSC Genome Bioinformatics Group's suite of biological analysis tools, i.e. the kent utilities"; 98 homepage = "http://genome.ucsc.edu"; 99 - changelog = "https://github.com/ucscGenomeBrowser/kent/releases/tag/v${version}_base"; 100 license = lib.licenses.unfree; 101 maintainers = with lib.maintainers; [ scalavision ]; 102 platforms = lib.platforms.linux; 103 }; 104 - }
··· 1 { 2 lib, 3 stdenv, 4 + writableTmpDirAsHomeHook, 5 libpng, 6 libuuid, 7 zlib, ··· 17 jq, 18 nix-update, 19 }: 20 + stdenv.mkDerivation (finalAttrs: { 21 pname = "kent"; 22 version = "486"; 23 24 src = fetchFromGitHub { 25 owner = "ucscGenomeBrowser"; 26 repo = "kent"; 27 + tag = "v${finalAttrs.version}_base"; 28 hash = "sha256-NffQ04+5rMtG/VI7YFK4Ff39DDhdh9Wlc0i1iVbg8Js="; 29 }; 30 + 31 + nativeBuildInputs = [ writableTmpDirAsHomeHook ]; 32 33 buildInputs = [ 34 libpng ··· 43 44 postPatch = '' 45 substituteInPlace ./src/checkUmask.sh \ 46 + --replace-fail "/bin/bash" "${bash}/bin/bash" 47 48 substituteInPlace ./src/hg/sqlEnvTest.sh \ 49 + --replace-fail "which mysql_config" "${which}/bin/which ${libmysqlclient}/bin/mysql_config" 50 ''; 51 52 buildPhase = '' ··· 56 export CFLAGS="-fPIC" 57 export MYSQLINC=$(mysql_config --include | sed -e 's/^-I//g') 58 export MYSQLLIBS=$(mysql_config --libs) 59 export DESTBINDIR=$HOME/bin 60 61 mkdir -p $HOME/lib $HOME/bin/${stdenv.hostPlatform.parsed.cpu.name} ··· 98 meta = { 99 description = "UCSC Genome Bioinformatics Group's suite of biological analysis tools, i.e. the kent utilities"; 100 homepage = "http://genome.ucsc.edu"; 101 + changelog = "https://github.com/ucscGenomeBrowser/kent/releases/tag/v${finalAttrs.version}_base"; 102 license = lib.licenses.unfree; 103 maintainers = with lib.maintainers; [ scalavision ]; 104 platforms = lib.platforms.linux; 105 }; 106 + })