airalab / aira

Autonomous intelligent robot agent (AIRA) project implements the standard of economic interaction between human-robot and robot-robot.
http://aira.life
BSD 3-Clause "New" or "Revised" License
98 stars 25 forks source link

Installation packages from aira channel #44

Closed tuuzdu closed 6 years ago

tuuzdu commented 6 years ago

Hi! I installed NixOS on laptop and trying to install all packages from aira channel and get error:

error: packages '/nix/store/9ddi5xh3lcifkq2p9k9yvr9bm9higii4-robonomics_game-0.0.0/_setup_util.py' and '/nix/store/0y860yqjz39ma481zasrr48jn599pna7-robonomics_comm-0.1/_setup_util.py' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)

What is the best way for resolve this issue? Changing of priority don't give effect.

akru commented 6 years ago

Hi! robonomics_game as same as robonomics_comm create environment build script in your user profile ~/.nix-profile/, for this reason install *comm and *game packages spawn conflict. But, you can use both packages as dependency of your personal package and build it via nix:

default.nix

{ pkgs ? import <nixpkgs> {} }:

let
  mypkgs = pkgs.mkRosPackage {
    name = "mypkg";
    src = ./.;
    buildInputs = with pkgs; [ robonomics_game robonomics_comm ];
  };
in pkgs.callPackage mypkgs {}
$ nix-build -I nixpkgs=/home/akru/devel/nixpkgs-channels
akru commented 6 years ago

@tuuzdu Are you have any additional questions?

tuuzdu commented 6 years ago

Thanks for advise. Noting else in this topic.