Skip to content

Commit f0c0ba0

Browse files
committed
Adds pcackage meta, bump Nix flake version to v0.1.4
1 parent 5843f56 commit f0c0ba0

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ A Cachix build is maintained at the `goki` repository.
2727
Import Goki by adding the following to your `flake.nix`:
2828

2929
```nix
30-
inputs.gitignore = {
31-
url = "github:GokiProtocol/goki-cli";
32-
inputs.nixpkgs.follows = "nixpkgs";
33-
# If you are using the Saber overlay:
34-
inputs.saber-overlay.follows = "saber-overlay";
35-
};
30+
{
31+
# ...
32+
inputs.goki-cli.url = "github:GokiProtocol/goki-cli";
33+
}
3634
```
3735

3836
The Goki CLI is exposed as the `defaultPackage` and on `packages.goki-cli`.

default.nix

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
{ src, rustPlatform, solana-cli, osSpecificPackages, pkgconfig, openssl }:
1+
{ lib, version, src, rustPlatform, solana-cli, osSpecificPackages, pkgconfig
2+
, openssl }:
23

34
rustPlatform.buildRustPackage rec {
45
pname = "goki-cli";
5-
version = "0.1.3";
6-
inherit src;
6+
inherit version src;
77

88
cargoLock = { lockFile = ./Cargo.lock; };
99
verifyCargoDeps = true;
1010
strictDeps = true;
1111

1212
nativeBuildInputs = [ pkgconfig ];
1313
buildInputs = osSpecificPackages ++ [ openssl solana-cli ];
14+
15+
meta = with lib; {
16+
homepage = "https://goki.so";
17+
description = "Goki command line tools.";
18+
19+
license = licenses.agpl3;
20+
platforms = platforms.unix;
21+
};
1422
}

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
++ (lib.optionals stdenv.isLinux [ libudev ]);
2929

3030
goki-cli = import ./default.nix {
31-
inherit (pkgs) solana-cli rustPlatform pkgconfig openssl;
31+
inherit (pkgs) lib solana-cli rustPlatform pkgconfig openssl;
3232
inherit osSpecificPackages;
33+
version = "0.1.4";
3334
src = gitignore.lib.gitignoreSource ./.;
3435
};
3536
in {

0 commit comments

Comments
 (0)