-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
55 lines (50 loc) · 1.24 KB
/
shell.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
44
45
46
47
48
49
50
51
52
53
54
55
{
pkgs ? import <nixpkgs> { },
}:
let
tombl = pkgs.callPackage (
{
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "tombl";
version = "0.2.3";
src = fetchFromGitHub {
owner = "snyball";
repo = "tombl";
tag = "v${version}";
hash = "sha256-XHvAgJ8/+ZkBxwZpMgaDchr0hBa1FXAd/j1+HH9N6qw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-A3zdDzmwX2gdTLLWnUGeiqY1R5PBKZRmEHdIi1Uveaw=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Easily query TOML files from bash";
homepage = "https://github.com/snyball/tombl";
changelog = "https://github.com/snyball/tombl/releases/tag/v${version}";
mainProgram = "tombl";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ oskardotglobal ];
};
}
) { };
in
pkgs.mkShellNoCC {
packages = with pkgs; [
wget
tombl
packwiz
just
envsubst
ripgrep
zip
nixfmt-rfc-style
];
}