Skip to content
Open
Show file tree
Hide file tree
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
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
description = "A very basic flake";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};

outputs = { self, nixpkgs }: let
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSupportedSystem = f:
nixpkgs.lib.genAttrs supportedSystems (system:
f {
pkgs = import nixpkgs {
inherit system;
};
});
in {
devShells = forEachSupportedSystem ({pkgs}: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
gopls
deltachat-rpc-server
];
};
# not core included, for when you want to set it to a local core checkout via $PATH
# you can start this with `nix develop .#no_core`
no_core = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
gopls
];
};
});
};
}
2 changes: 1 addition & 1 deletion scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env bash
#!/usr/bin/env bash

echo "Checking code with gofmt..."
OUTPUT=`gofmt -d .`
Expand Down