mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
intiface-central: 2.6.5 -> 2.6.7
This commit is contained in:
parent
0a3207f2af
commit
fb8c4a8169
3 changed files with 233 additions and 227 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
flutter327,
|
||||
flutter329,
|
||||
corrosion,
|
||||
rustPlatform,
|
||||
cargo,
|
||||
|
@ -11,15 +11,15 @@
|
|||
makeDesktopItem,
|
||||
}:
|
||||
|
||||
flutter327.buildFlutterApplication rec {
|
||||
flutter329.buildFlutterApplication rec {
|
||||
pname = "intiface-central";
|
||||
version = "2.6.5";
|
||||
version = "2.6.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intiface";
|
||||
repo = "intiface-central";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-goN0750EvGw5G8cb4jy6wWnjlLwlwMeTz4GQEilbwpY=";
|
||||
hash = "sha256-ePk0I6Uf2/eaBKSZumv/kF9MJOB+MWQ4/FnQ19lE3ZQ=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -32,7 +32,7 @@ flutter327.buildFlutterApplication rec {
|
|||
name = "${pname}-${version}-cargo-deps";
|
||||
inherit src;
|
||||
sourceRoot = "${src.name}/intiface-engine-flutter-bridge";
|
||||
hash = "sha256-z9i0xT0e8G9spOmXpI2yFee/y3ZEh69YqL+7zRWszzA=";
|
||||
hash = "sha256-EC0pdTG+BsVFbxixCeOIXCsMHi4pF3tug+YNVzaMn/A=";
|
||||
};
|
||||
|
||||
cargoRoot = "intiface-engine-flutter-bridge";
|
||||
|
@ -69,6 +69,8 @@ flutter327.buildFlutterApplication rec {
|
|||
})
|
||||
];
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
mainProgram = "intiface_central";
|
||||
description = "Intiface Central (Buttplug Frontend) Application for Desktop";
|
||||
|
|
File diff suppressed because it is too large
Load diff
20
pkgs/by-name/in/intiface-central/update.sh
Executable file
20
pkgs/by-name/in/intiface-central/update.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -I nixpkgs=./. -i bash -p curl gnused jq yq nix bash coreutils nix-update
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
ROOT="$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
latestTag=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sL https://api.github.com/repos/intiface/intiface-central/releases/latest | jq --raw-output .tag_name)
|
||||
latestVersion=$(echo "$latestTag" | sed 's/^v//')
|
||||
|
||||
currentVersion=$(nix-instantiate --eval -E "with import ./. {}; intiface-central.version or (lib.getVersion intiface-central)" | tr -d '"')
|
||||
|
||||
if [[ "$currentVersion" == "$latestVersion" ]]; then
|
||||
echo "package is up-to-date: $currentVersion"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
nix-update intiface-central --version $latestVersion
|
||||
|
||||
curl https://raw.githubusercontent.com/intiface/intiface-central/${latestTag}/pubspec.lock | yq . >$ROOT/pubspec.lock.json
|
Loading…
Add table
Add a link
Reference in a new issue