Prepare topics for workshop #182

Open
opened 2025-09-30 16:37:25 +02:00 by rarias · 0 comments
Owner
  • Prepare environment with python and a custom module with nOS-V dependency (Arnau).
{
  inputs.bscpkgs.url = "git+https://jungle.bsc.es/git/rarias/bscpkgs";
  outputs = { self, bscpkgs }:
  let
    customOverlay = final: prev: {
      python314 = prev.python314.override {
        enableGIL = false;
      };
      nosv = prev.nosv.override {
        useGit = true;
        gitBranch = "nosv_join";
        gitCommit = "33130d271a59d0794545e4a2a597a56951e428aa";
        gitUrl = "ssh://git@gitlab-internal.bsc.es/acinca/nos-v.git";
      };
    };
    pkgs = import bscpkgs.inputs.nixpkgs {
      system = "x86_64-linux";
      overlays = [
        bscpkgs.bscOverlay
        customOverlay
      ];
    };
  in {
    devShells.x86_64-linux.default = pkgs.mkShell {
      pname = "devshell";
      NOSV_HOME = pkgs.nosv;
      buildInputs = with pkgs; [
        (python314.withPackages (python-pkgs: with python-pkgs; [
          setuptools
        ]))
        gcc cowsay nosv
      ];
    };
  };
}
- Prepare environment with python and a [custom module](https://gitlab.bsc.es/huawei/pos-v) with nOS-V dependency (Arnau). ```nix { inputs.bscpkgs.url = "git+https://jungle.bsc.es/git/rarias/bscpkgs"; outputs = { self, bscpkgs }: let customOverlay = final: prev: { python314 = prev.python314.override { enableGIL = false; }; nosv = prev.nosv.override { useGit = true; gitBranch = "nosv_join"; gitCommit = "33130d271a59d0794545e4a2a597a56951e428aa"; gitUrl = "ssh://git@gitlab-internal.bsc.es/acinca/nos-v.git"; }; }; pkgs = import bscpkgs.inputs.nixpkgs { system = "x86_64-linux"; overlays = [ bscpkgs.bscOverlay customOverlay ]; }; in { devShells.x86_64-linux.default = pkgs.mkShell { pname = "devshell"; NOSV_HOME = pkgs.nosv; buildInputs = with pkgs; [ (python314.withPackages (python-pkgs: with python-pkgs; [ setuptools ])) gcc cowsay nosv ]; }; }; } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rarias/jungle#182
No description provided.