You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

flake.nix 1.4 kB

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