From 1c82a3f5919f1aef38cba11049edb0f6c50ac02a Mon Sep 17 00:00:00 2001 From: Daniel Barter Date: Sat, 29 Oct 2022 10:18:25 -0700 Subject: [PATCH] removing old nix file --- mini-compile-commands.nix | 41 --------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 mini-compile-commands.nix diff --git a/mini-compile-commands.nix b/mini-compile-commands.nix deleted file mode 100644 index 16ea6ee..0000000 --- a/mini-compile-commands.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, python3Minimal -}: - -rec { - # function for wrapping a standard environment to include the - # compile commands generation functionality - wrap = env: - let - hook = "ln -s ${package}/bin/cc-wrapper-hook $out/nix-support/cc-wrapper-hook"; - in - env.override (old: { - cc = old.cc.overrideAttrs (final: previous: { - installPhase = previous.installPhase or "" + hook; - }); - extraBuildInputs = old.extraBuildInputs or [] ++ [ package ]; - allowedRequisites = null; - }); - - # mini compile commands package. You probably don't want to use this directly. - # instead, wrap your standard environment: ( mini-compile-commands.wrap stdenv ) - package = stdenv.mkDerivation { - pname = "mini_compile_commands"; - - src = ./.; - # specifying python environment variable so that it gets substituted - # during install phase - python = python3Minimal; - - installPhase = '' - mkdir -p $out/bin - export mini_compile_commands_client=$out/bin/mini_compile_commands_client.py - for file in $(ls $src); do - substituteAll $src/$file $out/bin/$file - chmod +x $out/bin/$file - done - ''; - }; -}