pkgs: remove 'pnpm-lock-export'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
I don't need it now that it has been upstreamed.
This commit is contained in:
parent
0e5d40ef7f
commit
520d799124
|
@ -26,8 +26,6 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: {
|
|||
|
||||
osc52 = pkgs.callPackage ./osc52 { };
|
||||
|
||||
pnpm-lock-export = pkgs.callPackage ./pnpm-lock-export { };
|
||||
|
||||
unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock { };
|
||||
|
||||
unified-hosts-lists = pkgs.callPackage ./unified-hosts-lists { };
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{ lib, buildNpmPackage, fetchFromGitHub }:
|
||||
buildNpmPackage rec {
|
||||
pname = "pnpm-lock-export";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cvent";
|
||||
repo = "pnpm-lock-export";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-vS6AW3R4go1Fdr3PBOCnuN4JDrDkl1lWVF7q+q+xDGg=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-3uW/lzB+UDhFQtRb3X8szNlgAWTcSdwVdtyZvLu+cjI=";
|
||||
|
||||
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"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A utility for converting pnpm-lock.yaml to other lockfile formats";
|
||||
homepage = "https://github.com/cvent/pnpm-lock-export";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ ambroisie ];
|
||||
};
|
||||
}
|
9847
pkgs/pnpm-lock-export/package-lock.json
generated
9847
pkgs/pnpm-lock-export/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,47 +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")"
|
||||
version="$1"
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$version" ]; then
|
||||
version="$(wget -O- "${TOKEN_ARGS[@]}" "https://api.github.com/repos/cvent/pnpm-lock-export/releases?per_page=1" | jq -r '.[0].tag_name')"
|
||||
fi
|
||||
|
||||
# strip leading "v"
|
||||
version="${version#v}"
|
||||
|
||||
# pnpm-lock-export repository
|
||||
src_hash=$(nix-prefetch-github cvent pnpm-lock-export --rev "v${version}" | jq -r .sha256)
|
||||
|
||||
# Front-end dependencies
|
||||
upstream_src="https://raw.githubusercontent.com/cvent/pnpm-lock-export/v$version"
|
||||
|
||||
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
|
||||
src_hash=$(nix hash to-sri --type sha256 "$src_hash")
|
||||
deps_hash=$(nix hash to-sri --type sha256 "$deps_hash")
|
||||
|
||||
sed -i -E -e "s#version = \".*\"#version = \"$version\"#" default.nix
|
||||
sed -i -E -e "s#hash = \".*\"#hash = \"$src_hash\"#" default.nix
|
||||
sed -i -E -e "s#npmDepsHash = \".*\"#npmDepsHash = \"$deps_hash\"#" default.nix
|
Loading…
Reference in a new issue