diff --git a/default.nix b/default.nix index dcf61fa..770d4dd 100644 --- a/default.nix +++ b/default.nix @@ -1,10 +1,10 @@ self: super: let - mkBinaryInstall-x86_64-linux = super.callPackage ./nix/mkBinaryInstall.x86_64-linux.nix { }; + mkBinaryInstall = super.callPackage ./nix/mkBinaryInstall.nix { }; in { surrealdb = { - "1.4.2" = mkBinaryInstall-x86_64-linux { + "1.4.2" = mkBinaryInstall { version = "1.4.2"; url = "https://github.com/surrealdb/surrealdb/releases/download/v1.4.2/surreal-v1.4.2.linux-amd64.tgz"; sha256 = "10hswwyckfcysindffiaf8z8g0lib800j1id8pws70250s4dz895"; diff --git a/flake.nix b/flake.nix index 50c692e..41f7f74 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,21 @@ inputs.treefmt-nix.flakeModule ]; + flake.overlays.surrealdb-overlay = + self: super: + let + mkBinaryInstall = super.callPackage ./nix/mkBinaryInstall.nix { }; + in + { + surrealdb = { + "1.4.2" = mkBinaryInstall { + version = "1.4.2"; + url = "https://github.com/surrealdb/surrealdb/releases/download/v1.4.2/surreal-v1.4.2.linux-amd64.tgz"; + sha256 = "10hswwyckfcysindffiaf8z8g0lib800j1id8pws70250s4dz895"; + }; + }; + }; + perSystem = { pkgs, ... }: { diff --git a/nix/mkBinaryInstall.x86_64-linux.nix b/nix/mkBinaryInstall.nix similarity index 99% rename from nix/mkBinaryInstall.x86_64-linux.nix rename to nix/mkBinaryInstall.nix index 5e8f0aa..079f86f 100644 --- a/nix/mkBinaryInstall.x86_64-linux.nix +++ b/nix/mkBinaryInstall.nix @@ -5,7 +5,7 @@ rpath ? lib.makeLibraryPath [ gcc-unwrapped ], gcc-unwrapped, }: - + { pname ? "surrealdb", version,