Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop nixgl #13

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
if test -f .envrc.local; then
# If you don't need nixgl, eg. if you are n NixOS, you can:
# echo 'use flake .#pure' > .envrc.local
source_env .envrc.local
else
# unfree is only required if you use nvidia
export NIXPKGS_ALLOW_UNFREE=1
use flake . --impure
fi
use flake .
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
name: gepetto
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: ros
- run: nix build -L .#devShells.x86_64-linux.pure
- run: nix build -L .#devShells.x86_64-linux.default
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ The goal is to make use of ros.cachix.org, but right now (2024-12-09), this is c

Use this project with direnv. If the default devShell does not suit your use case,
you can define your own `.envrc.local`

## GUI issues on non-NixOS distros

Please try <https://github.com/soupglasses/nix-system-graphics>
50 changes: 0 additions & 50 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 6 additions & 27 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
url = "https://github.com/nim65s/nixpkgs/pull/1.patch";
flake = false;
};

## NixGL, for people not yet on NixOS
nixgl.url = "github:nix-community/nixGL";
};
outputs =
{ nixpkgs, self, ... }@inputs:
Expand All @@ -21,42 +18,24 @@
let
pkgs = import ./patched-nixpkgs.nix {
inherit nixpkgs system;
overlays = [
inputs.nix-ros-overlay.overlays.default
inputs.nixgl.overlay
];
overlays = [ inputs.nix-ros-overlay.overlays.default ];
patches = [
inputs.patch-hpp
];
};
pure-packages = [
pkgs.colcon
self.packages.${system}.python
self.packages.${system}.ros
];
in
{
devShells = {
# Expected base entrypoint.
# This is "pure" + some stuff wrapped by NixGL
default = pkgs.mkShell {
name = "Gepetto Main Dev Shell with NixGL";
packages = pure-packages ++ [
self.packages.${system}.nixgl-gepetto-gui
];
};
pure = pkgs.mkShell {
name = "Gepetto Main Dev Shell";
packages = pure-packages;
packages = [
pkgs.colcon
self.packages.${system}.python
self.packages.${system}.ros
];
};
};
packages = {
nixgl-gepetto-gui =
with pkgs;
writeShellApplication {
name = "nixgl-gepetto-gui";
text = "${lib.getExe' nixgl.auto.nixGLDefault "nixGL"} ${lib.getExe python3Packages.gepetto-gui}";
};
python = pkgs.python3.withPackages (p: [
p.crocoddyl
p.gepetto-gui
Expand Down
Loading