jackett: migrate lockfile generation to fetch-deps
This commit is contained in:
parent
c68b58fdd1
commit
2d5e7eac07
|
@ -36,13 +36,12 @@ buildDotnetModule rec {
|
||||||
ln -s $out/bin/jackett $out/bin/Jackett || :
|
ln -s $out/bin/jackett $out/bin/Jackett || :
|
||||||
ln -s $out/bin/Jackett $out/bin/jackett || :
|
ln -s $out/bin/Jackett $out/bin/jackett || :
|
||||||
'';
|
'';
|
||||||
|
passthru.updateScript = ./updater.sh;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "API Support for your favorite torrent trackers";
|
description = "API Support for your favorite torrent trackers";
|
||||||
homepage = "https://github.com/Jackett/Jackett/";
|
homepage = "https://github.com/Jackett/Jackett/";
|
||||||
license = licenses.gpl2Only;
|
license = licenses.gpl2Only;
|
||||||
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
passthru.updateScript = ./updater.sh;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p curl jq common-updater-scripts nuget-to-nix dotnet-sdk_6
|
#!nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
|
@ -15,23 +15,4 @@ fi
|
||||||
|
|
||||||
cd ../../..
|
cd ../../..
|
||||||
update-source-version jackett "${new_version//v}"
|
update-source-version jackett "${new_version//v}"
|
||||||
store_src="$(nix-build . -A jackett.src --no-out-link)"
|
$(nix-build -A jackett.fetch-deps --no-out-link) "$deps_file"
|
||||||
src="$(mktemp -d /tmp/jackett-src.XXX)"
|
|
||||||
cp -rT "$store_src" "$src"
|
|
||||||
chmod -R +w "$src"
|
|
||||||
|
|
||||||
pushd "$src"
|
|
||||||
|
|
||||||
export DOTNET_NOLOGO=1
|
|
||||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
||||||
|
|
||||||
mkdir ./nuget_pkgs
|
|
||||||
|
|
||||||
for project in src/Jackett.Server/Jackett.Server.csproj src/Jackett.Test/Jackett.Test.csproj; do
|
|
||||||
dotnet restore "$project" --packages ./nuget_pkgs
|
|
||||||
done
|
|
||||||
|
|
||||||
nuget-to-nix ./nuget_pkgs > "$deps_file"
|
|
||||||
|
|
||||||
popd
|
|
||||||
rm -r "$src"
|
|
||||||
|
|
Loading…
Reference in a new issue