use buildEnv for radical-native
This commit is contained in:
parent
c037f7b4e1
commit
3c169e222e
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
pkgs, stdenv, lib, fetchFromGitHub, rustPlatform,
|
pkgs, buildEnv, lib, fetchFromGitHub, rustPlatform,
|
||||||
sqlcipher, ...
|
sqlcipher, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -22,17 +22,26 @@ let
|
||||||
cargoSha256 = "07499mybgr91kklbxcp3wlj0d2a3d25hj68w98z2xy1j1dkyhyw6";
|
cargoSha256 = "07499mybgr91kklbxcp3wlj0d2a3d25hj68w98z2xy1j1dkyhyw6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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" ]
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
pkgs.writeTextFile {
|
buildEnv {
|
||||||
name = "radical.native.json";
|
|
||||||
text = ''
|
name = "radical-nativeFull";
|
||||||
{
|
|
||||||
"name": "radical.native",
|
paths = [ host manifest ];
|
||||||
"description": "Radical Native",
|
|
||||||
"path": "${host}/bin/radical-native",
|
|
||||||
"type": "stdio",
|
|
||||||
"allowed_extensions": [ "@radical-native" ]
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue