-
Notifications
You must be signed in to change notification settings - Fork 94
/
flake.nix
54 lines (46 loc) · 1.41 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "Dora CLI package for Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
packages = {
dora-cli = pkgs.rustPlatform.buildRustPackage rec {
pname = "dora-cli";
version = "0.3.6";
src = pkgs.fetchFromGitHub {
owner = "dora-rs";
repo = "dora";
rev = "v${version}";
hash = "sha256-YwEqwA7Eqz7ZJYFfKoPTWkmgsudKpoATcFE6OOwxpbU=";
};
cargoHash = "sha256-AkungKYGHMK/tUfzh0d88zRRkQfshus7xOHzdtYAT/I=";
nativeBuildInputs = [pkgs.pkg-config];
buildInputs = [pkgs.openssl];
OPENSSL_NO_VENDOR = 1;
buildPhase = ''
cargo build --release -p dora-cli
'';
installPhase = ''
mkdir -p $out/bin
cp target/release/dora $out/bin
'';
doCheck = false;
meta = {
description = "Making robotic applications fast and simple!";
homepage = "https://dora-rs.ai/";
changelog = "https://github.com/dora-rs/dora/blob/main/Changelog.md";
license = pkgs.lib.licenses.asl20;
};
};
};
});
}