about summary refs log tree commit diff
path: root/pkgs/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-11-20 20:19:58 +0100
committerProfpatsch <mail@profpatsch.de>2021-11-20 20:19:58 +0100
commit3cecebef43fe778f1b8a5e824f34cf396bda91c2 (patch)
tree1738c13d5608ac0c92c8a7d4844317b5e5b0eaef /pkgs/profpatsch
parent21b782b09e0c392a9111adb24d0d8263d37759c6 (diff)
pkgs/profpatsch/tvl: filter out emacs overlay
Diffstat (limited to 'pkgs/profpatsch')
-rw-r--r--pkgs/profpatsch/default.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix
index cc8d0629..93cb2364 100644
--- a/pkgs/profpatsch/default.nix
+++ b/pkgs/profpatsch/default.nix
@@ -105,24 +105,24 @@ let
   # # on with the given nixpkgsPath.
   importTvl = { tvlCommit, tvlSha256, nixpkgsPath }:
     let
-      # bins = getBins pkgs.gawk [ "gawk" ]
-      #     // getBins pkgs.coreutils [ "cp" ];
-      # gawkScript = ''
-      #   /stableNixpkgs =/ { sub("stableNixpkgsSrc", "${nixpkgsPath}"); print }
-      #   !/stableNixpkgs =/ { print }
-      # '';
+      bins = getBins pkgs.gawk [ "gawk" ]
+          // getBins pkgs.coreutils [ "cp" ];
+      gawkScript = ''
+        # patch out emacs overlay (requires fetching the overlay with builtins.fetchTarball)
+        /depot.third_party.overlays.emacs/ {}
+        1 { print }
+      '';
       src = pkgs.fetchgit {
         url = "https://code.tvl.fyi/depot.git";
         rev = tvlCommit; # 2021-11-13
         sha256 = tvlSha256;
       };
-      # prepareSource = runExeclineFns.runExeclineLocal "prepare-tvl" {} [
-      #   "importas" "out" "out"
-      #   "if" [ bins.cp "--no-preserve=mode" "-r" src "$out" ]
-      #   bins.gawk "-i" "inplace" gawkScript "\${out}/third_party/nixpkgs/default.nix"
-      # ];
-    # in prepareSource;
-    in import src {
+      prepareSource = runExeclineFns.runExeclineLocal "prepare-tvl" {} [
+        "importas" "out" "out"
+        "if" [ bins.cp "--no-preserve=mode" "-r" src "$out" ]
+        bins.gawk "-i" "inplace" gawkScript "\${out}/third_party/nixpkgs/default.nix"
+      ];
+    in import prepareSource {
       nixpkgsBisectPath = nixpkgsPath;
     };