3 Star 5 Fork 0

Gitee 极速下载/git_cdn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://gitlab.com/grouperenault/git_cdn.git
克隆/下载
flake.nix 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs =
{
self,
nixpkgs,
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
# For devShell:
libs = with pkgs; [
glibc
gcc.cc
zlib
];
libs_path = pkgs.lib.strings.makeLibraryPath libs;
in
{
formatter.${system} = pkgs.nixfmt-rfc-style;
devShells.${system}.default = pkgs.mkShellNoCC {
packages = with pkgs; [
python312
poetry
glibc # for ldd in patch_libs
patchelf # for patch_libs
];
POETRY = "poetry";
PYTHON_KEYRING_BACKEND = "keyring.backends.fail.Keyring";
# Used on scripts/patch_libs.sh
LD_LIBRARY_PATH_BASE = libs_path;
buildInputs = [ pkgs.bashInteractive ];
nativeBuildInputs = with pkgs; [ makeWrapper ];
shellHook = ''
echo "
You can now execute:
$ make nixdev
$ poetry install
$ patch_libs.sh
$ poetry run ...
"
echo "$ python --version"
python --version
echo "$ poetry --version"
poetry --version
'';
};
};
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/git_cdn.git
git@gitee.com:mirrors/git_cdn.git
mirrors
git_cdn
git_cdn
master

搜索帮助