forked from jaxxstorm/tscli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
49 lines (45 loc) · 1.05 KB
/
flake.nix
File metadata and controls
49 lines (45 loc) · 1.05 KB
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
44
45
46
47
48
49
{
description = "Flake for github:jaxxstorm/tscli";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
tscli = pkgs.buildGoModule {
pname = "tscli";
version = "0.0.4";
src = self;
vendorHash = "sha256-CBaaieo8wCFKiRMzlFd5h3+QF51eiyRJo8UlVnUzIG0=";
};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
go
gotools
gopls
tscli
];
};
packages = {
default = tscli;
tscli = tscli;
docker = pkgs.dockerTools.buildImage {
name = "ghcr.io/jaxxstorm/tscli";
tag = "latest";
copyToRoot = tscli;
created = self.lastModifiedDate;
};
};
}
);
}