intiface-central: 2.6.5 -> 2.6.7 (#408601)

This commit is contained in:
Pol Dellaiera
2025-05-23 06:24:33 +00:00
committed by GitHub
5 changed files with 267 additions and 227 deletions
+7 -5
View File
@@ -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
View 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
@@ -16,6 +16,7 @@
pdfrx = callPackage ./pdfrx { };
printing = callPackage ./printing { };
rhttp = callPackage ./rhttp { };
sentry_flutter = callPackage ./sentry_flutter { };
sqlcipher_flutter_libs = callPackage ./sqlcipher_flutter_libs { };
sqlite3 = callPackage ./sqlite3 { };
sqlite3_flutter_libs = callPackage ./sqlite3_flutter_libs { };
@@ -0,0 +1,33 @@
{
stdenv,
fetchFromGitHub,
}:
{ version, src, ... }:
let
sentry-native = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-native";
tag = "0.8.4";
hash = "sha256-0NLxu+aelp36m3ocPhyYz3LDeq310fkyu8WSpZML3Pc=";
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "sentry_flutter";
inherit version src;
inherit (src) passthru;
postPatch = ''
sed -i "s|GIT_REPOSITORY.*|SOURCE_DIR "${sentry-native}"|" sentry-native/sentry-native.cmake
sed -i '/GIT_TAG/d' sentry-native/sentry-native.cmake
'';
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
})