From 520d4927c6fc5f154a105a7710acfc20428945e2 Mon Sep 17 00:00:00 2001
From: Astro <astro@spaceboyz.net>
Date: Sat, 24 Aug 2019 03:53:38 +0200
Subject: [PATCH] rm obsolete openocd.nix

this repo is now l0dable-only and l0dables can't be debugged?
---
 default.nix |  1 -
 openocd.nix | 40 ----------------------------------------
 shell.nix   |  1 -
 3 files changed, 42 deletions(-)
 delete mode 100644 openocd.nix

diff --git a/default.nix b/default.nix
index 97197b0d..2d1d4119 100644
--- a/default.nix
+++ b/default.nix
@@ -4,7 +4,6 @@ let
 in
 with pkgs;
 let
-  openocd = callPackage ./openocd.nix {};
   rust = rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabi" ];
   rustPlatform = makeRustPlatform {
     rustc = rust;
diff --git a/openocd.nix b/openocd.nix
deleted file mode 100644
index dcad7ece..00000000
--- a/openocd.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ stdenv, makeWrapper, openocd, fetchFromGitHub, autoreconfHook, git, which }:
-let
-  maxim-openocd = openocd.overrideAttrs (oa: {
-      name = "maxim-openocd";
-      src = fetchFromGitHub {
-        owner = "maximmbed";
-        repo = "openocd";
-        rev = "e71ac88c9dbfa4ee1405d7a86376119dcc887ed1";
-        sha256 = "18yc1wyclmjxqg6jilfcm60hi01pgqc4dilsmksqbhg23m6x4ycw";
-        fetchSubmodules = true;
-      };
-      nativeBuildInputs = oa.nativeBuildInputs ++ [
-        autoreconfHook
-        git
-        which
-      ];
-      enableParallelBuilding = true;
-    });
-  card10-scripts = stdenv.mkDerivation {
-    name = "card10-scripts";
-    src = ./c/openocd/scripts;
-    dontBuild = true;
-    installPhase = ''
-      mkdir -p $out/share/openocd
-      cp -ar . $out/share/openocd/scripts
-   '';
-  };
-in
-  stdenv.mkDerivation {
-    name = "openocd-card10";
-    src = maxim-openocd;
-    phases = [ "unpackPhase" "installPhase" ];
-    buildInputs = [ makeWrapper maxim-openocd card10-scripts ];
-    installPhase = ''
-      mkdir -p $out/bin
-      makeWrapper ${maxim-openocd}/bin/openocd $out/bin/openocd-card10 \
-        --add-flags "-f ${card10-scripts}/share/openocd/scripts/interface/cmsis-dap.cfg" \
-        --add-flags "-f ${card10-scripts}/share/openocd/scripts/target/max32665.cfg"
-    '';
-  }
diff --git a/shell.nix b/shell.nix
index 31788c58..48bcea54 100644
--- a/shell.nix
+++ b/shell.nix
@@ -10,7 +10,6 @@ stdenv.mkDerivation {
     glibc_multi
     rust
     pkgsCross.arm-embedded.stdenv.cc
-    openocd
   ];
 
   LIBCLANG_PATH="${llvmPackages.libclang}/lib";
-- 
GitLab