Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
# /etc/nixos/packages/surrealdb-bin.nix { stdenv, fetchzip, autoPatchelfHook, glibc, gcc-unwrapped }: stdenv.mkDerivation rec { pname = "surrealdb-bin"; version = "1.1.0"; src = fetchzip { url = "https://github.com/surrealdb/surrealdb/releases/download/v${version}/surreal-v${version}.linux-amd64.tgz"; sha256 = "2611de5eb7779dfe3b32bb47833fee2e3e168e39e43d76b47ea649b2f8c407fa"; }; nativeBuildInputs = [ autoPatchelfHook ]; buildInputs = [ glibc gcc-unwrapped ]; installPhase = '' runHook preInstall mkdir -p $out/bin install -m755 surreal $out/bin runHook postInstall ''; }
The nix package manager is an awesome package manager for linux and macos, which focuses on declarative packages. This means that you can dump out all the packages you want into a file, and nix will go out and fetch them for you.