nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 libgit2,
7 openssl,
8 sqlite,
9 zlib,
10}:
11
12rustPlatform.buildRustPackage rec {
13 pname = "intelli-shell";
14 version = "3.4.0";
15
16 src = fetchFromGitHub {
17 owner = "lasantosr";
18 repo = "intelli-shell";
19 rev = "v${version}";
20 hash = "sha256-TrT2gMc23m4xZ/fxxHqEkGpq3VBeLfkPXC9H1sSSOaQ=";
21 };
22
23 cargoHash = "sha256-usALz3Wj3GyYjHjmEwFvjyDizXKQ66fkZ8Tb7GgT9BA=";
24
25 nativeBuildInputs = [
26 pkg-config
27 ];
28
29 buildNoDefaultFeatures = true;
30 buildFeatures = [
31 "extra-features"
32 ];
33
34 buildInputs = [
35 libgit2
36 openssl
37 sqlite
38 zlib
39 ];
40
41 env = {
42 OPENSSL_NO_VENDOR = true;
43 };
44
45 meta = {
46 description = "Like IntelliSense, but for shells";
47 homepage = "https://github.com/lasantosr/intelli-shell";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ lasantosr ];
50 mainProgram = "intelli-shell";
51 };
52}