Skip to content

Commit

Permalink
nuget-to-nix: update to use pname instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey committed Dec 23, 2021
1 parent 989e950 commit 81eb599
Show file tree
Hide file tree
Showing 19 changed files with 3,080 additions and 3,080 deletions.
838 changes: 419 additions & 419 deletions pkgs/applications/blockchains/btcpayserver/deps.nix

Large diffs are not rendered by default.

432 changes: 216 additions & 216 deletions pkgs/applications/blockchains/nbxplorer/deps.nix

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkgs/applications/blockchains/nbxplorer/util/create-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ HOME=home DOTNET_CLI_TELEMETRY_OPTOUT=1 \

echo "{ fetchNuGet }: [" > "$depsFile"
while read pkgSpec; do
{ read name; read version; } < <(
{ read pname; read version; } < <(
# Ignore build version part: 1.0.0-beta2+77df2220 -> 1.0.0-beta2
sed -nE 's/.*<id>([^<]*).*/\1/p; s/.*<version>([^<+]*).*/\1/p' "$pkgSpec"
)
sha256=$(nix-hash --type sha256 --flat --base32 "$(dirname "$pkgSpec")"/*.nupkg)
cat >> "$depsFile" <<EOF
(fetchNuGet {
name = "$name";
pname = "$pname";
version = "$version";
sha256 = "$sha256";
})
Expand Down
578 changes: 289 additions & 289 deletions pkgs/applications/misc/ArchiSteamFarm/deps.nix

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkgs/build-support/build-dotnet-module/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ assert nugetDeps == null -> throw "Defining the `nugetDeps` attribute is require

let
_nugetDeps = linkFarmFromDrvs "${name}-nuget-deps" (import nugetDeps {
fetchNuGet = { name, version, sha256 }: fetchurl {
name = "nuget-${name}-${version}.nupkg";
url = "https://www.nuget.org/api/v2/package/${name}/${version}";
fetchNuGet = { pname, version, sha256 }: fetchurl {
name = "${pname}-${version}.nupkg";
url = "https://www.nuget.org/api/v2/package/${pname}/${version}";
inherit sha256;
};
});
Expand Down
238 changes: 119 additions & 119 deletions pkgs/development/dotnet-modules/python-language-server/deps.nix

Large diffs are not rendered by default.

164 changes: 82 additions & 82 deletions pkgs/development/tools/misc/netcoredbg/deps.nix

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkgs/games/osu-lazer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ in stdenv.mkDerivation rec {
];

nugetDeps = linkFarmFromDrvs "${pname}-nuget-deps" (import ./deps.nix {
fetchNuGet = { name, version, sha256 }: fetchurl {
name = "nuget-${name}-${version}.nupkg";
url = "https://www.nuget.org/api/v2/package/${name}/${version}";
fetchNuGet = { pname, version, sha256 }: fetchurl {
name = "${pname}-${version}.nupkg";
url = "https://www.nuget.org/api/v2/package/${pname}/${version}";
inherit sha256;
};
});
Expand Down
720 changes: 360 additions & 360 deletions pkgs/games/osu-lazer/deps.nix

Large diffs are not rendered by default.

448 changes: 224 additions & 224 deletions pkgs/misc/emulators/ryujinx/deps.nix

Large diffs are not rendered by default.

714 changes: 357 additions & 357 deletions pkgs/servers/jackett/deps.nix

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkgs/servers/jellyfin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ stdenv.mkDerivation rec {
];

nugetDeps = linkFarmFromDrvs "${pname}-nuget-deps" (import ./nuget-deps.nix {
fetchNuGet = { name, version, sha256 }: fetchurl {
name = "nuget-${name}-${version}.nupkg";
url = "https://www.nuget.org/api/v2/package/${name}/${version}";
fetchNuGet = { pname, version, sha256 }: fetchurl {
name = "${pname}-${version}.nupkg";
url = "https://www.nuget.org/api/v2/package/${pname}/${version}";
inherit sha256;
};
});
Expand Down
906 changes: 453 additions & 453 deletions pkgs/servers/jellyfin/nuget-deps.nix

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkgs/servers/nosql/eventstore/create-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ DEPS_HEADER="
{ fetchurl }:
let
nugetUrlBase = \"$URLBASE\";
fetchNuGet = { name, version, sha256 }: fetchurl {
fetchNuGet = { pname, version, sha256 }: fetchurl {
inherit sha256;
url = \"\${nugetUrlBase}/\${name}/\${version}\";
url = \"\${nugetUrlBase}/\${pname}/\${version}\";
};
in ["

DEPS_FOOTER="]"

DEPS_TEMPLATE="
(fetchNuGet {
name = \"%s\";
pname = \"%s\";
version = \"%s\";
sha256 = \"%s\";
})"
Expand Down
Loading

0 comments on commit 81eb599

Please sign in to comment.