Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions pkgs/by-name/su/surrealist/package.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
buildGoModule,
cairo,
cargo,
cargo-tauri,
cargo,
esbuild,
fetchFromGitHub,
gdk-pixbuf,
glib-networking,
gobject-introspection,
jq,
lib,
libsoup_3,
makeBinaryWrapper,
moreutils,
nodejs,
openssl,
pango,
Expand Down Expand Up @@ -48,13 +50,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "surrealist";
version = "3.0.8";
version = "3.1.9";

src = fetchFromGitHub {
owner = "surrealdb";
repo = "surrealist";
rev = "surrealist-v${finalAttrs.version}";
hash = "sha256-46CXldjhWc7H6wdKfMK2IlmBqfe0QHi/J1uFhbV42HY=";
hash = "sha256-p+Tyu65A+vykqafu1RCRKYFXb435Uyu9WxUoEqjI8d8=";
};

# HACK: A dependency (surrealist -> tauri -> **reqwest**) contains hyper-tls
Expand All @@ -70,23 +72,25 @@ stdenv.mkDerivation (finalAttrs: {
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) patches src;
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.cargoRoot}";
hash = "sha256-HmdEcjgxPyRsQqhU0P/C3KVgwZsSvfHjyzj0OHKe5jY";
hash = "sha256-8rw3x17f5pLLyvxozFPWq9pJNHy4wXwV9CcaUGAbdd0=";
patchFlags = [ "-p2" ];
};

pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-uBDbBfWC9HxxzY1x4+rNo87D5C1zZa2beFLa5NkLs80=";
hash = "sha256-JwOY6Z8UjbrodSQ3csnT+puftbQUDF3NIK7o6rSpl2o=";
};

nativeBuildInputs = [
cargo
cargo-tauri.hook
gobject-introspection
jq
makeBinaryWrapper
moreutils
nodejs
pnpm.configHook
pkg-config
pnpm.configHook
rustc
rustPlatform.cargoSetupHook
];
Expand All @@ -108,6 +112,15 @@ stdenv.mkDerivation (finalAttrs: {
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;

# Deactivate the upstream update mechanism
postPatch = ''
jq '
.bundle.createUpdaterArtifacts = false |
.plugins.updater = {"active": false, "pubkey": "", "endpoints": []}
' \
src-tauri/tauri.conf.json | sponge src-tauri/tauri.conf.json
'';

postFixup = ''
wrapProgram "$out/bin/surrealist" \
--set GIO_EXTRA_MODULES ${glib-networking}/lib/gio/modules \
Expand Down