From 7f74a33efaff977acf5ae4e7fe8bd435d5564881 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Mon, 2 Oct 2023 13:56:45 +0200 Subject: [PATCH] meta: add vincenzopalazzo as manatainer of the nix shell Signed-off-by: Vincenzo Palazzo --- .github/CODEOWNERS | 1 + default.nix | 72 ---------------------------------------------- 2 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 default.nix diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4c3303f738f2..d66103d34c3a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -14,6 +14,7 @@ contrib/pyln-client/ @cdecker contrib/pyln-testing/ @cdecker # Needed to ensure hsmd wire compatibility between releases hsmd/hsmd_wire.csv @cdecker @ksedgwic @devrandom +contrib/nix/ @vincenzopalazzo # See https://help.github.com/articles/about-codeowners/ for more # information diff --git a/default.nix b/default.nix deleted file mode 100644 index 3aa4358d2fa3..000000000000 --- a/default.nix +++ /dev/null @@ -1,72 +0,0 @@ -let - # Import nixpkgs - pkgs = import { }; - - # Import poetry2nix and its functions - poetry2nix = pkgs.poetry2nix; - - # Create a Python environment using poetry2nix - baseEnv = poetry2nix.mkPoetryEnv { - python = pkgs.python310; - projectDir = ./.; - poetrylock = ./poetry.lock; # Path to your poetry.lock file - }; - finalEnv = baseEnv.overrideAttrs (oldAttrs: { - buildInputs = oldAttrs.buildInputs ++ [ pkgs.python310Packages.hatchling ]; - }); -in -with pkgs; -stdenv.mkDerivation { - name = "git-dev-nix-env"; - - buildInputs = [ - gcc - sqlite - autoconf - git - clang - libtool - sqlite - autoconf - autogen - automake - gnumake - pkg-config - gmp - zlib - gettext - libsodium - - # Python dep - poetry - python310 - python310Packages.pip - python310Packages.pytest - baseEnv # Add the poetry environment here - - # optional dev libraries - ccache - - # debugs libraries - valgrind - ]; - shellHook = '' - # Tells pip to put packages into $PIP_PREFIX instead of the usual locations. - # See https://pip.pypa.io/en/stable/user_guide/#environment-variables. - export PIP_PREFIX=$(pwd)/_build/pip_packages - export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH" - export PATH="$PIP_PREFIX/bin:$PATH" - unset SOURCE_DATE_EPOCH - poetry config experimental.new-installer false - -<<<<<<< HEAD - ''; -} - - -======= - # Indirected dependencies for running tests - bitcoind - ]; -} ->>>>>>> 9303cc6dd (fixup! build: add a simple nix dev shell)