init radical-native

This commit is contained in:
Daniel Løvbrøtte Olsen 2020-02-25 14:17:49 +01:00
parent 0d800bca69
commit c037f7b4e1
2 changed files with 41 additions and 0 deletions

View File

@ -21,5 +21,8 @@
JAVMovieScraper = pkgs.callPackage ./pkgs/JAVMovieScraper { };
janus = pkgs.libsForQt5.callPackage ./pkgs/JanusVR/client { };
radical-native = pkgs.callPackage ./pkgs/radical-native { };
}

View File

@ -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" ]
}
'';
}