From 3c169e222e8d1023ba051e3078a83311a8567a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Tue, 25 Feb 2020 14:40:50 +0100 Subject: [PATCH] use buildEnv for radical-native --- pkgs/radical-native/default.nix | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) 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 ]; + }