open-stage-control: 1.20.0 -> 1.21.0
This commit is contained in:
parent
d473811bd2
commit
491ccdb05c
3 changed files with 6 additions and 18259 deletions
|
@ -2,21 +2,21 @@
|
||||||
|
|
||||||
buildNpmPackage rec {
|
buildNpmPackage rec {
|
||||||
pname = "open-stage-control";
|
pname = "open-stage-control";
|
||||||
version = "1.20.0";
|
version = "1.21.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jean-emmanuel";
|
owner = "jean-emmanuel";
|
||||||
repo = "open-stage-control";
|
repo = "open-stage-control";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-XgwlRdwUSl4gIRKqk6BnMAKarVvp291zk8vmNkuRWKo=";
|
hash = "sha256-6tRd8boVwWc8qGlklYqA/Kp76VOMvtUJlu/G/InvHkA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use generated package-lock.json since upstream does not provide one in releases
|
# Remove some Electron stuff from package.json
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
ln -sT ${./package-lock.json} ./package-lock.json
|
sed -i -e '/"electron"\|"electron-installer-debian"/d' package.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
npmDepsHash = "sha256-5KZXZ4agHcAh3gai5w9YodETIEGJtDq/kyEZOHb9dOc=";
|
npmDepsHash = "sha256-M+6+zrxy8VpJQS0dG/xORMbflKEq8wO2DEOjGrA6OUw=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
|
|
18244
pkgs/applications/audio/open-stage-control/package-lock.json
generated
18244
pkgs/applications/audio/open-stage-control/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -14,7 +14,7 @@ nixeval() {
|
||||||
}
|
}
|
||||||
|
|
||||||
vendorhash() {
|
vendorhash() {
|
||||||
(nix --extra-experimental-features nix-command build --impure -f "$nixpkgs" --no-link "$1" 2>&1 >/dev/null | tail -n3 | grep -F got: | cut -d: -f2- | stripwhitespace) 2>/dev/null || true
|
(nix --extra-experimental-features nix-command build --impure --argstr nixpkgs "$nixpkgs" --argstr attr "$1" --expr '{ nixpkgs, attr }: let pkgs = import nixpkgs {}; in with pkgs.lib; (getAttrFromPath (splitString "." attr) pkgs).overrideAttrs (attrs: { outputHash = fakeHash; })' --no-link 2>&1 >/dev/null | tail -n3 | grep -F got: | cut -d: -f2- | stripwhitespace) 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
findpath() {
|
findpath() {
|
||||||
|
@ -32,7 +32,6 @@ attr="${UPDATE_NIX_ATTR_PATH:-open-stage-control}"
|
||||||
version="$(cd "$nixpkgs" && list-git-tags --pname="$(nixeval "$attr".pname)" --attr-path="$attr" | grep '^v' | sed -e 's|^v||' | sort -V | tail -n1)"
|
version="$(cd "$nixpkgs" && list-git-tags --pname="$(nixeval "$attr".pname)" --attr-path="$attr" | grep '^v' | sed -e 's|^v||' | sort -V | tail -n1)"
|
||||||
|
|
||||||
pkgpath="$(findpath "$attr")"
|
pkgpath="$(findpath "$attr")"
|
||||||
pkgdir="$(dirname "$pkgpath")"
|
|
||||||
|
|
||||||
updated="$(cd "$nixpkgs" && update-source-version "$attr" "$version" --file="$pkgpath" --print-changes | jq -r length)"
|
updated="$(cd "$nixpkgs" && update-source-version "$attr" "$version" --file="$pkgpath" --print-changes | jq -r length)"
|
||||||
|
|
||||||
|
@ -41,14 +40,6 @@ if [ "$updated" -eq 0 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download package.json from the latest release
|
|
||||||
curl -sSL https://raw.githubusercontent.com/jean-emmanuel/open-stage-control/v"$version"/package.json | grep -v '"electron"\|"electron-installer-debian"' >"$pkgdir"/package.json
|
|
||||||
|
|
||||||
# Lock dependencies with npm
|
|
||||||
(cd "$pkgdir" && npm install --package-lock-only --ignore-scripts --legacy-peer-deps)
|
|
||||||
|
|
||||||
rm -f "$pkgdir"/package.json
|
|
||||||
|
|
||||||
# Update FOD hash
|
# Update FOD hash
|
||||||
curhash="$(nixeval "$attr.npmDeps.outputHash")"
|
curhash="$(nixeval "$attr.npmDeps.outputHash")"
|
||||||
newhash="$(vendorhash "$attr.npmDeps")"
|
newhash="$(vendorhash "$attr.npmDeps")"
|
||||||
|
|
Loading…
Reference in a new issue