Move personal shells to a custom directory

This commit is contained in:
2026-02-04 10:25:22 +01:00
parent 0495bf0dee
commit 150bdae46e
9 changed files with 0 additions and 0 deletions

45
custom/arnau/posv/flake.lock generated Normal file
View File

@@ -0,0 +1,45 @@
{
"nodes": {
"jungle": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1760427467,
"narHash": "sha256-DemQ+XT3BWXh8fr6UDfGNUB4ba0tGJXyep5/lg+gBD4=",
"ref": "refs/heads/master",
"rev": "4261d327c678e52abdd568a27168ea7cdd0484a0",
"revCount": 1487,
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
},
"original": {
"type": "git",
"url": "https://jungle.bsc.es/git/rarias/jungle"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752436162,
"narHash": "sha256-Kt1UIPi7kZqkSc5HVj6UY5YLHHEzPBkgpNUByuyxtlw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dfcd5b901dbab46c9c6e80b265648481aafb01f8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"jungle": "jungle"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -0,0 +1,47 @@
{
# Fetch the list of packages for BSC
inputs.jungle.url = "git+https://jungle.bsc.es/git/rarias/jungle";
outputs = { self, jungle }:
let
customOverlay = final: prev: {
# Disable GIL in python
python314 = prev.python314.override {
enableGIL = false;
};
# Use a custom nOS-V commit
nosv = prev.nosv.override {
useGit = true;
gitBranch = "nosv_join";
gitCommit = "33130d271a59d0794545e4a2a597a56951e428aa";
gitUrl = "ssh://git@gitlab-internal.bsc.es/acinca/nos-v.git";
};
};
pkgs = import jungle.inputs.nixpkgs {
system = "x86_64-linux";
overlays = [
# Add our BSC packages
jungle.bscOverlay
# And our changes above on top
customOverlay
];
};
in {
devShells.x86_64-linux.default = pkgs.mkShell {
pname = "devshell";
# Set the NOSV_HOME to point to the current nosv package
NOSV_HOME = pkgs.nosv;
# These will be included in the environment with `nix develop`.
buildInputs = with pkgs; [
# Add python to the develop shell, with setuptools included
(python314.withPackages (python-pkgs: with python-pkgs; [
setuptools
]))
# Extra packages
gcc cowsay nosv
];
};
};
}