Skip to content

Commit

Permalink
style: nix-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
haruki7049 committed Jul 1, 2024
1 parent d1cfade commit 1bae599
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
7 changes: 3 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ let
super.stdenv.mkDerivation rec {
inherit pname version;

src = fetchurl {
inherit url sha256;
};
src = fetchurl { inherit url sha256; };

sourceRoot = ".";

Expand Down Expand Up @@ -39,7 +37,8 @@ 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-arm64.tgz";
url =
"https://github.com/surrealdb/surrealdb/releases/download/v1.4.2/surreal-v1.4.2.linux-arm64.tgz";
sha256 = "0xdaz8gy787rf3f3frk7czkdi1fyy5d24xip9lsnx7d88s02slw6";
};
};
Expand Down
16 changes: 3 additions & 13 deletions example/v1.4.2.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
{ pkgs ? import <nixpkgs> {
inherit overlays;
}
, overlays ? [
(import ../default.nix)
]
, mkShell ? pkgs.mkShell
}:
{ pkgs ? import <nixpkgs> { inherit overlays; }
, overlays ? [ (import ../default.nix) ], mkShell ? pkgs.mkShell }:

mkShell {
packages = [
pkgs.surrealdb."1.4.2"
];
}
mkShell { packages = [ pkgs.surrealdb."1.4.2" ]; }

0 comments on commit 1bae599

Please sign in to comment.