Skip to content

Commit 4e7fb91

Browse files
committed
nix - install sourcegraph cli
1 parent fc30019 commit 4e7fb91

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nix/pkgs/custom/src-cli.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let
2+
rev = "0c80e917b50eb934c9324e44961538e0826a6f58";
3+
# until this merges to upstream, https://github.com/sourcegraph/src-cli
4+
url = "https://github.com/ryuheechul/src-cli/archive/${rev}.tar.gz";
5+
in
6+
(import (fetchTarball url)).default

nix/pkgs/lang/support.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
let
44
checkEnv = import ../../utils/checkEnv.nix;
55
devenv = import ../custom/devenv.nix;
6+
src-cli = import ../custom/src-cli.nix;
67
in
78
with pkgs;
89
[ ]
@@ -11,6 +12,7 @@ with pkgs;
1112
git-lfs # git extention for large file storage
1213
pre-commit # for managing multi-language pre-commit hooks
1314
gitwatch # Watch a file or folder and automatically commit changes to a git repo easily.
15+
src-cli # Sourcegraph CLI
1416
]
1517
++ lib.optionals (checkEnv "MY_NIX_EXTRA_DEVENV")
1618
# devenv is not a language but help a quick setup of a dev environment for many languages

0 commit comments

Comments
 (0)