about summary refs log tree commit diff
path: root/third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-12-27T09·29+0300
committertazjin <tazjin@tvl.su>2023-12-29T21·52+0000
commiteba5c1757afcecc64def04e0058bccb9d248fd9f (patch)
treecd455f498642b1bb1d349a74cec64f4fae2021df /third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch
parent4b3f27ebc91c34c4a6a33d164e4d9f5fc975a48e (diff)
chore(3p/sources): bump channels & overlays (2023-12-29) r/7278
* all: update wasm-bindgen to 0.2.89 in WASM projects
* users/grfn: explicitly set pinentry for gpg-agent
* 3p/crate2nix: drop patches that were merged upstream
* 3p/rust-crates: fix one more package name that was broken by crates.io
* 3p/overlays: bump telega backend to new required version

The update for agenix has been dropped. It caused strange build errors
with messages like these:

    patching script interpreter paths in /nix/store/0g0wpa3vxfb4w461s6ny3s1wr08faj73-agenix-0.15.0
    /nix/store/0g0wpa3vxfb4w461s6ny3s1wr08faj73-agenix-0.15.0/bin/agenix: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
    stripping (with command strip and flags -S -p) in  /nix/store/0g0wpa3vxfb4w461s6ny3s1wr08faj73-agenix-0.15.0/bin
    Running phase: installCheckPhase
    no Makefile or custom installCheckPhase, doing nothing
    agenix version: 0.15.0
    error: creating directory '/nix/var': Permission denied
    There is no rule for secret1.age in ./secrets.nix.
    /nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 138: test: =: unary operator expected
    /nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
    builder for '/nix/store/0ivvf44hxy0zv4gg8nvchdkp895xw5ri-agenix-0.15.0.drv' failed with exit code 2

I can't be bothered to deal with that right now.

Change-Id: Ia052af0d97dbe9ef0c0d4f3e2214ac00ca8645a2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10458
Reviewed-by: aspen <root@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch')
-rw-r--r--third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch b/third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch
deleted file mode 100644
index 96e0fdd263cc..000000000000
--- a/third_party/overlays/patches/crate2nix-fix-resolve-missing-target-features-to-null.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 5ed4d5f99e8c2ee0e552ceb3842fdf0afaed7534 Mon Sep 17 00:00:00 2001
-From: tilpner <git@tilpner.com>
-Date: Tue, 24 Oct 2023 20:26:29 +0200
-Subject: [PATCH] fix: resolve missing target features to 'null'
-
----
- crate2nix/Cargo.nix                              | 16 ++++++++--------
- crate2nix/src/render.rs                          | 10 +++++-----
- sample_projects/bin/Cargo.toml                   |  3 +++
- .../bin_with_git_submodule_dep/Cargo.nix         |  6 +++---
- sample_projects/codegen/Cargo.nix                |  2 +-
- 5 files changed, 20 insertions(+), 17 deletions(-)
-
-diff --git a/crate2nix/src/render.rs b/crate2nix/src/render.rs
-index 8ca2f1c..a269fc7 100644
---- a/src/render.rs
-+++ b/src/render.rs
-@@ -224,7 +224,7 @@ fn cfg_to_nix_expr(cfg: &CfgExpr) -> String {
-                 } else if key == "target_family" {
-                     format!("(builtins.elem {} target.{})", escaped_value, target(key))
-                 } else {
--                    format!("({} == target.{})", escaped_value, target(key))
-+                    format!("({} == target.{} or null)", escaped_value, target(key))
-                 });
-             }
-             CfgExpr::Not(expr) => {
-@@ -292,19 +292,19 @@ fn test_render_cfg_to_nix_expr() {
-         &cfg_to_nix_expr(&kv("target_family", "unix"))
-     );
-     assert_eq!(
--        "(\"linux\" == target.\"os\")",
-+        "(\"linux\" == target.\"os\" or null)",
-         &cfg_to_nix_expr(&kv("target_os", "linux"))
-     );
-     assert_eq!(
--        "(!(\"linux\" == target.\"os\"))",
-+        "(!(\"linux\" == target.\"os\" or null))",
-         &cfg_to_nix_expr(&CfgExpr::Not(Box::new(kv("target_os", "linux"))))
-     );
-     assert_eq!(
--        "((target.\"unix\" or false) || (\"linux\" == target.\"os\"))",
-+        "((target.\"unix\" or false) || (\"linux\" == target.\"os\" or null))",
-         &cfg_to_nix_expr(&CfgExpr::Any(vec![name("unix"), kv("target_os", "linux")]))
-     );
-     assert_eq!(
--        "((target.\"unix\" or false) && (\"linux\" == target.\"os\"))",
-+        "((target.\"unix\" or false) && (\"linux\" == target.\"os\" or null))",
-         &cfg_to_nix_expr(&CfgExpr::All(vec![name("unix"), kv("target_os", "linux")]))
-     );
-     assert_eq!("true", &cfg_to_nix_expr(&CfgExpr::All(vec![])));
--- 
-2.42.0
-