From c037f7b4e1dbe6a628858ac0eeb8167919ec1621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Tue, 25 Feb 2020 14:17:49 +0100 Subject: [PATCH] init radical-native --- default.nix | 3 +++ pkgs/radical-native/default.nix | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/radical-native/default.nix diff --git a/default.nix b/default.nix index 0ef2053..9a26d21 100644 --- a/default.nix +++ b/default.nix @@ -21,5 +21,8 @@ JAVMovieScraper = pkgs.callPackage ./pkgs/JAVMovieScraper { }; janus = pkgs.libsForQt5.callPackage ./pkgs/JanusVR/client { }; + + radical-native = pkgs.callPackage ./pkgs/radical-native { }; + } diff --git a/pkgs/radical-native/default.nix b/pkgs/radical-native/default.nix new file mode 100644 index 0000000..4c45113 --- /dev/null +++ b/pkgs/radical-native/default.nix @@ -0,0 +1,38 @@ +{ + pkgs, stdenv, lib, fetchFromGitHub, rustPlatform, + sqlcipher, ... +}: + +let + + host = + rustPlatform.buildRustPackage rec { + pname = "radical-native"; + version = "0.1.9"; + + buildInputs = [ sqlcipher ]; + + src = fetchFromGitHub { + owner = "stoically"; + repo = pname; + rev = "v0.1beta9"; + sha256 = "1saaczkpdb61wfdingjvvq25vmyvrlvry7xrdq877i9agzbrzknw"; + }; + + cargoSha256 = "07499mybgr91kklbxcp3wlj0d2a3d25hj68w98z2xy1j1dkyhyw6"; + }; + +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" ] + } + ''; +}