2020-02-25 14:17:49 +01:00
|
|
|
{
|
2020-02-25 14:40:50 +01:00
|
|
|
pkgs, buildEnv, lib, fetchFromGitHub, rustPlatform,
|
2020-02-25 14:17:49 +01:00
|
|
|
sqlcipher, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
host =
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "radical-native";
|
2020-04-14 18:00:39 +02:00
|
|
|
version = "0.1.10";
|
2020-02-25 14:17:49 +01:00
|
|
|
|
|
|
|
buildInputs = [ sqlcipher ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stoically";
|
|
|
|
repo = pname;
|
2020-04-14 18:00:39 +02:00
|
|
|
rev = "v0.1beta10";
|
|
|
|
sha256 = "1gd1k9my7qp2gp8k149ga2dcw14yxxb0ld6j3856wz5a2yr4izi2";
|
2020-02-25 14:17:49 +01:00
|
|
|
};
|
|
|
|
|
2020-12-12 15:33:29 +01:00
|
|
|
cargoSha256 = "1ll320ljikrv1v8a7k07smp4syc969fwpxfc2b7axn6pc6l8izi8";
|
2020-02-25 14:17:49 +01:00
|
|
|
};
|
|
|
|
|
2020-02-25 14:40:50 +01:00
|
|
|
manifest = pkgs.writeTextFile {
|
|
|
|
name = "radical.native.json";
|
|
|
|
destination = "/lib/mozilla/native-messaging-hosts/radical.native.json";
|
|
|
|
text = ''
|
|
|
|
{
|
|
|
|
"name": "radical.native",
|
|
|
|
"description": "Radical Native",
|
|
|
|
"path": "${host}/bin/radical-native",
|
|
|
|
"type": "stdio",
|
|
|
|
"allowed_extensions": [ "@radical-native" ]
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
2020-02-25 14:17:49 +01:00
|
|
|
in
|
2020-02-25 14:40:50 +01:00
|
|
|
buildEnv {
|
|
|
|
name = "radical-nativeFull";
|
|
|
|
paths = [ host manifest ];
|
2020-02-25 14:17:49 +01:00
|
|
|
}
|