Skip to content

Commit

Permalink
Move shells to separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Nov 5, 2024
1 parent d71d37d commit 9875c05
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 34 deletions.
36 changes: 2 additions & 34 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@
}
);

overlays = import ./overlays { inherit inputs; };
devShells.${system} = import ./shells nixpkgs.legacyPackages.${system};
packages.${system} = import ./pkgs nixpkgs.legacyPackages.${system};
# packages.${system} = (
# let
Expand All @@ -193,39 +195,5 @@
# in
# import ./pkgs { inherit pkgs; }
# );
overlays = import ./overlays { inherit inputs; };

devShells.${system}.default =
let
pkgs = nixpkgs.legacyPackages.${system};
in
pkgs.mkShell {
buildInputs = with pkgs; [
cmake
glib
stdenv.cc.cc.lib
zlib
];

shellHook = ''
# export LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath [
pkgs.glib
pkgs.stdenv.cc.cc.lib
pkgs.zlib
]
}:''$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath [
pkgs.glib
pkgs.stdenv.cc.cc.lib
pkgs.zlib
]
}
# https://github.com/python-poetry/poetry/issues/8623#issuecomment-1793624371
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
echo "Flake Env"
'';
};
};
}
31 changes: 31 additions & 0 deletions shells/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pkgs: {
# default = pkgs.callPackage ./csm/package.nix { };
default = pkgs.mkShell {
buildInputs = with pkgs; [
cmake
glib
stdenv.cc.cc.lib
zlib
];

shellHook = ''
# export LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath [
pkgs.glib
pkgs.stdenv.cc.cc.lib
pkgs.zlib
]
}:''$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath [
pkgs.glib
pkgs.stdenv.cc.cc.lib
pkgs.zlib
]
}
# https://github.com/python-poetry/poetry/issues/8623#issuecomment-1793624371
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
echo "Flake Env"
'';
};
}

0 comments on commit 9875c05

Please sign in to comment.