From 3cecebef43fe778f1b8a5e824f34cf396bda91c2 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 20 Nov 2021 20:19:58 +0100 Subject: pkgs/profpatsch/tvl: filter out emacs overlay --- pkgs/profpatsch/default.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'pkgs/profpatsch') 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; }; -- cgit 1.4.1