From 85405c0bec21e58bd60977fc2fca27e3cad51e94 Mon Sep 17 00:00:00 2001 From: haruki7049 Date: Mon, 1 Jul 2024 12:01:02 +0900 Subject: [PATCH] feat: Init surrealdb v1.4.2 without sha256 --- default.nix | 43 +++---------------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/default.nix b/default.nix index bf4695e..57a5702 100644 --- a/default.nix +++ b/default.nix @@ -37,47 +37,10 @@ let }; in { surrealdb = { - "1.4.2" = let - in super.stdenv.mkDerivation rec { - pname = "surrealdb"; + "1.4.2" = mkBinaryInstall { version = "1.4.2"; - - src = { - x86_64-linux = super.fetchurl { - url = - "https://github.com/surrealdb/surrealdb/releases/download/v${version}/surreal-v${version}.linux-amd64.tgz"; - hash = "sha256-JaHfiAZFgKP5RS0GCQBakYKHPnIqOtds1J65yTznGoI="; - }; - aarch64-linux = super.fetchurl { - url = - "https://github.com/surrealdb/surrealdb/releases/download/v${version}/surreal-v${version}.linux-arm64.tgz"; - hash = "sha256-hlMtgEaonW41TTd2Ilrx3oXY5mdnZjfccPmg4x/6qnU="; - }; - }.${system}; - - sourceRoot = "."; - - installPhase = '' - runHook preInstall - - mkdir -p $out/bin - cp surreal $out/bin/surreal - - runHook postInstall - ''; - - postFixup = '' - patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/bin/surreal" || true - patchelf --set-rpath ${rpath} "$out/bin/surreal" || true - ''; - - meta = with super.lib; { - description = - "A scalable, distributed, collaborative, document-graph database, for the realtime web"; - homepage = "https://surrealdb.com/"; - mainProgram = "surreal"; - license = licenses.bsl11; - }; + url = "https://github.com/surrealdb/surrealdb/releases/download/v1.4.2/surreal-v1.4.2.linux-arm64.tgz"; + sha256 = ""; }; }; }