diff --git a/pkgs/radical-native/default.nix b/pkgs/radical-native/default.nix index 4c45113..df79a34 100644 --- a/pkgs/radical-native/default.nix +++ b/pkgs/radical-native/default.nix @@ -1,5 +1,5 @@ { - pkgs, stdenv, lib, fetchFromGitHub, rustPlatform, + pkgs, buildEnv, lib, fetchFromGitHub, rustPlatform, sqlcipher, ... }: @@ -22,17 +22,26 @@ let 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 -pkgs.writeTextFile { - name = "radical.native.json"; - text = '' - { - "name": "radical.native", - "description": "Radical Native", - "path": "${host}/bin/radical-native", - "type": "stdio", - "allowed_extensions": [ "@radical-native" ] - } - ''; +buildEnv { + + name = "radical-nativeFull"; + + paths = [ host manifest ]; + }