-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (40 loc) · 1.08 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-FileCopyrightText: Stefan Tatschner
#
# SPDX-License-Identifier: CC0-1.0
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = { self, nixpkgs }:
with import nixpkgs { system = "x86_64-linux"; };
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = with pkgs; [
go
gopls
bats
reuse
shellcheck
shfmt
nodePackages_latest.bash-language-server
];
shellHook = ''
LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [stdenv.cc.cc]}
'';
};
packages.x86_64-linux.default =
pkgs.buildGoModule {
pname = "penrun";
src = self;
version = self.lastModifiedDate;
buildInputs = [ pkgs.go ];
vendorHash = "sha256-IfJQHzKlw9Xqb9nEdQ9Z9rVD7mWG2FZvdN5JYhvTURo=";
meta = with lib; {
mainProgram = "penrun";
platforms = platforms.unix;
};
};
formatter.x86_64-linux = pkgs.nixpkgs-fmt;
};
}