Skip to content

Commit 5265362

Browse files
confusedalexuninsane
authored andcommitted
fishy: init at 0.2.1
1 parent 69d4d07 commit 5265362

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

pkgs/by-name/fi/fishy/package.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
fetchFromGitHub,
3+
lib,
4+
nix-update-script,
5+
openssl,
6+
pkg-config,
7+
rustPlatform,
8+
versionCheckHook,
9+
}:
10+
11+
rustPlatform.buildRustPackage rec {
12+
pname = "fishy";
13+
version = "0.2.1";
14+
15+
src = fetchFromGitHub {
16+
owner = "p2panda";
17+
repo = "fishy";
18+
tag = "v${version}";
19+
hash = "sha256-nRkP53v9+VzqHKTsHs+cBeLjh3yASFE18sSEY02NR1s=";
20+
};
21+
22+
useFetchCargoVendor = true;
23+
cargoHash = "sha256-F4zbalop1PEb381DctUIzdm3v71b6M/hnuw9BuIEkBU=";
24+
25+
OPENSSL_NO_VENDOR = 1;
26+
27+
nativeBuildInputs = [ pkg-config ];
28+
buildInputs = [ openssl ];
29+
30+
nativeInstallCheckInputs = [ versionCheckHook ];
31+
versionCheckProgramArg = "--version";
32+
doInstallCheck = true;
33+
passthru.updateScript = nix-update-script { };
34+
35+
meta = {
36+
description = "Create, manage and deploy p2panda schemas";
37+
homepage = "https://github.com/p2panda/fishy";
38+
changelog = "https://github.com/p2panda/fishy/blob/${src.rev}/CHANGELOG.md";
39+
license = lib.licenses.agpl3Only;
40+
maintainers = with lib.maintainers; [ confusedalex ];
41+
mainProgram = "fishy";
42+
};
43+
}

0 commit comments

Comments
 (0)