pnpm-lock-export: drop (#404755)
This commit is contained in:
commit
818012b517
@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
buildNpmPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
}:
|
|
||||||
buildNpmPackage {
|
|
||||||
pname = "pnpm-lock-export";
|
|
||||||
version = "unstable-2023-07-31";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "adamcstephens";
|
|
||||||
repo = "pnpm-lock-export";
|
|
||||||
rev = "a7ede6d96f9d273b6b495718b85ed40f432c34ba";
|
|
||||||
hash = "sha256-RQGyUQOyFZW7UbIPRRlZu8FKcZN2kO0DcPfB8uLFFg4=";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-1VTXzlafuI+dU4k1JyZPVI5/5h0gt/eggPPXKYxKsbs=";
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
cp ${./package-lock.json} package-lock.json
|
|
||||||
# Make the executable get installed to `bin/` instead of `bin/@cvent`
|
|
||||||
substituteInPlace package.json --replace "@cvent/pnpm-lock-export" "pnpm-lock-export"
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
updateScript = ./update.sh;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Utility for converting pnpm-lock.yaml to other lockfile formats";
|
|
||||||
mainProgram = "pnpm-lock-export";
|
|
||||||
homepage = "https://github.com/cvent/pnpm-lock-export";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ ambroisie ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
10001
pkgs/development/web/pnpm-lock-export/package-lock.json
generated
10001
pkgs/development/web/pnpm-lock-export/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,43 +0,0 @@
|
|||||||
#!/usr/bin/env nix-shell
|
|
||||||
#!nix-shell -i bash -p nix wget nix-prefetch-github jq prefetch-npm-deps nodejs
|
|
||||||
|
|
||||||
# shellcheck shell=bash
|
|
||||||
|
|
||||||
if [ -n "$GITHUB_TOKEN" ]; then
|
|
||||||
TOKEN_ARGS=(--header "Authorization: token $GITHUB_TOKEN")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $# -gt 1 || $1 == -* ]]; then
|
|
||||||
echo "Regenerates packaging data for the pnpm-lock-export packages."
|
|
||||||
echo "Usage: $0 [git release tag]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
|
||||||
rev="$1"
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
if [ -z "$rev" ]; then
|
|
||||||
rev="$(wget -O- "${TOKEN_ARGS[@]}" "https://api.github.com/repos/adamcstephens/pnpm-lock-export/commits?per_page=1" | jq -r '.[0].sha')"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# pnpm-lock-export repository
|
|
||||||
src_hash=$(nix-prefetch-github adamcstephens pnpm-lock-export --rev "${rev}" | jq -r .hash)
|
|
||||||
|
|
||||||
# Front-end dependencies
|
|
||||||
upstream_src="https://raw.githubusercontent.com/adamcstephens/pnpm-lock-export/${rev}"
|
|
||||||
|
|
||||||
trap 'rm -rf package.json' EXIT
|
|
||||||
wget "${TOKEN_ARGS[@]}" "$upstream_src/package.json"
|
|
||||||
npm install --package-lock-only
|
|
||||||
deps_hash=$(prefetch-npm-deps package-lock.json)
|
|
||||||
|
|
||||||
# Use friendlier hashes
|
|
||||||
deps_hash=$(nix hash to-sri --type sha256 "$deps_hash")
|
|
||||||
|
|
||||||
sed -i -E -e "s#rev = \".*\"#rev = \"$rev\"#" default.nix
|
|
||||||
sed -i -E -e "s#hash = \".*\"#hash = \"$src_hash\"#" default.nix
|
|
||||||
sed -i -E -e "s#npmDepsHash = \".*\"#npmDepsHash = \"$deps_hash\"#" default.nix
|
|
||||||
@ -7578,8 +7578,6 @@ with pkgs;
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
pnpm-lock-export = callPackage ../development/web/pnpm-lock-export { };
|
|
||||||
|
|
||||||
portableService = callPackage ../build-support/portable-service { };
|
portableService = callPackage ../build-support/portable-service { };
|
||||||
|
|
||||||
polar = callPackage ../tools/misc/polar { };
|
polar = callPackage ../tools/misc/polar { };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user