Merge remote-tracking branch 'origin/master' into staging-next
Conflicts: pkgs/development/tools/rust/cargo-expand/default.nix pkgs/tools/misc/blflash/default.nix
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "blflash";
|
||||
version = "0.3.2";
|
||||
version = "0.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spacemeowx2";
|
||||
repo = "blflash";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-+2ncK1ibtQwlBREw4Yiqj4vFvAcZqjkoTBtBdAAUoRg=";
|
||||
sha256 = "sha256-hPScmivtugtZm848Itzg4Tb9rppZny+rKi3IBuUxxQY=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-hgymSNivcNT9aXws20sBrk76ToDnCQh/dqfUHBzK1Ls=";
|
||||
cargoSha256 = "sha256-/y3R8B2TOf8jeB9tcewoA9EGN6kj/EPMTjU6rfTF5Vc=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "An bl602 serial flasher written in Rust";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "burpsuite";
|
||||
version = "2021.4.2";
|
||||
version = "2021.5.1";
|
||||
|
||||
src = fetchurl {
|
||||
name = "burpsuite.jar";
|
||||
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||
"https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
|
||||
"https://web.archive.org/web/https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
|
||||
];
|
||||
sha256 = "034c9d0a7e0b5e7b1b286949c6b31b475ff2a15e75f1230ccc07e236fc61d2aa";
|
||||
sha256 = "sha256-nPz6IZpXCyg6cg2nuyqK2f5BI4dNb5tA2NriH3ZC198=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
diff --git a/download_model.sh b/download_model.sh
|
||||
index 9cb401f..ad1dc62 100755
|
||||
--- a/download_model.sh
|
||||
+++ b/download_model.sh
|
||||
@@ -13,5 +13,5 @@ mkdir -p models/$model
|
||||
for filename in checkpoint encoder.json hparams.json model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta vocab.bpe; do
|
||||
fetch=$model/$filename
|
||||
echo "Fetching $fetch"
|
||||
- curl --output models/$fetch https://storage.googleapis.com/gpt-2/models/$fetch
|
||||
+ curl --output models/$fetch https://openaipublic.blob.core.windows.net/gpt-2/models/$fetch
|
||||
done
|
||||
@@ -2,20 +2,17 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gpt2tc";
|
||||
version = "2020-12-30";
|
||||
version = "2021-04-24";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bellard.org/nncp/gpt2tc-${version}.tar.gz";
|
||||
hash = "sha256-KFcl7E6iGx50JaJI1jwzKAdkrkbNngPbrEA/ZSyG+uY=";
|
||||
url = "https://bellard.org/libnc/gpt2tc-${version}.tar.gz";
|
||||
hash = "sha256-kHnRziSNRewifM/oKDQwG27rXRvntuUUX8M+PUNHpA4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Add a shebang to the python script so that nix detects it as such and
|
||||
# wraps it properly. Otherwise, it runs in shell and freezes the system.
|
||||
./0001-add-python-shebang.patch
|
||||
|
||||
# Update the source URL for the models because the old one is down.
|
||||
./0002-fix-download-url.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
@@ -24,11 +21,11 @@ stdenv.mkDerivation rec {
|
||||
(python3.withPackages (p: with p; [ numpy tensorflow ]))
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D -m755 -t $out/lib libnc${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
addAutoPatchelfSearchPath $out/lib
|
||||
install -D -m755 -t $out/bin gpt2tc
|
||||
install -T -m755 download_model.sh $out/bin/gpt2-download-model
|
||||
install -T -m755 gpt2convert.py $out/bin/gpt2-convert
|
||||
|
||||
Reference in New Issue
Block a user