diff --git a/flake.lock b/flake.lock index 49f877eb..25b60d50 100644 --- a/flake.lock +++ b/flake.lock @@ -6,11 +6,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1647857022, - "narHash": "sha256-Aw70NWLOIwKhT60MHDGjgWis3DP3faCzr6ap9CSayek=", + "lastModified": 1671489820, + "narHash": "sha256-qoei5HDJ8psd1YUPD7DhbHdhLIT9L2nadscp4Qk37uk=", "owner": "numtide", "repo": "devshell", - "rev": "0a5ff74dacb9ea22614f64e61aeb3ca0bf0e7311", + "rev": "5aa3a8039c68b4bf869327446590f4cdf90bb634", "type": "github" }, "original": { @@ -20,12 +20,16 @@ } }, "emacs-overlay": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": "nixpkgs_2" + }, "locked": { - "lastModified": 1649269279, - "narHash": "sha256-bvnfwOr8equu8UU8EJ1AZIyY/hOvyKHd9C99xh6odTI=", + "lastModified": 1672247295, + "narHash": "sha256-nzwcwy6LVOLcqemTCUoJJp6nafCpcvyCG+T76Bb5OXM=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "7f24256e2e5423ad21b1953977fa102aa3401dfb", + "rev": "8ad6bfa7413d59d408bf1ea8680a03b17a949082", "type": "github" }, "original": { @@ -37,11 +41,11 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1648199409, - "narHash": "sha256-JwPKdC2PoVBkG6E+eWw3j6BMR6sL3COpYWfif7RVb8Y=", + "lastModified": 1668681692, + "narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=", "owner": "edolstra", "repo": "flake-compat", - "rev": "64a525ee38886ab9028e6f61790de0832aa3ef03", + "rev": "009399224d5e398d03b22badca40a37ac85412a1", "type": "github" }, "original": { @@ -67,11 +71,11 @@ }, "flake-utils_2": { "locked": { - "lastModified": 1648297722, - "narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=", + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", "owner": "numtide", "repo": "flake-utils", - "rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", "type": "github" }, "original": { @@ -82,11 +86,26 @@ }, "flake-utils_3": { "locked": { - "lastModified": 1637014545, - "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", "owner": "numtide", "repo": "flake-utils", - "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_4": { + "locked": { + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", "type": "github" }, "original": { @@ -113,11 +132,25 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1648219316, - "narHash": "sha256-Ctij+dOi0ZZIfX5eMhgwugfvB+WZSrvVNAyAuANOsnQ=", + "lastModified": 1672249180, + "narHash": "sha256-ipos/gTMHqxS39asqNWEJZ7nXdcTHa0TB0AIZXkGapg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e58a7747db96c23b8a977e7c1bbfc5753b81b6fa", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1672249180, + "narHash": "sha256-ipos/gTMHqxS39asqNWEJZ7nXdcTHa0TB0AIZXkGapg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "30d3d79b7d3607d56546dd2a6b49e156ba0ec634", + "rev": "e58a7747db96c23b8a977e7c1bbfc5753b81b6fa", "type": "github" }, "original": { @@ -132,24 +165,24 @@ "devshell": "devshell", "emacs-overlay": "emacs-overlay", "flake-compat": "flake-compat", - "flake-utils": "flake-utils_2", - "nixpkgs": "nixpkgs_2", + "flake-utils": "flake-utils_3", + "nixpkgs": "nixpkgs_3", "rust-overlay": "rust-overlay" } }, "rust-overlay": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_4", "nixpkgs": [ "nixpkgs" ] }, "locked": { - "lastModified": 1649212438, - "narHash": "sha256-inr/6z2/3aekw3HP51dSSjbY6oPaaOmd1yHqRbnPHr0=", + "lastModified": 1672194128, + "narHash": "sha256-7xRHQRkrYjsRxowLTl0ShfT2H5xaN82Je/xtRmMd4oc=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "69e0fdf70582e1b1e3b4d84e5201ca72b58b5b9f", + "rev": "bb9fef79d831cc3c1bfdda2bb72e69706d1ab168", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 1e937fc1..1cbd690b 100644 --- a/flake.nix +++ b/flake.nix @@ -147,11 +147,11 @@ }; emacsngSrc = prev.rustPlatform.fetchCargoTarball { - src = emacsng-source + "/rust_src"; + src = emacsng-source; cargoUpdateHook = '' - sed -e 's/@CARGO_.*@//' Cargo.toml.in > Cargo.toml - sed -i 's|@WEBRENDER_DEFAULT_FEATURES@|"webrender"|' Cargo.toml + sed -e 's/@CARGO_.*@//' Cargo.in > Cargo.toml + sed -e 's/@WEBRENDER_.*@//' rust_src/crates/webrender/Cargo.in > rust_src/crates/webrender/Cargo.toml '' + doVersionedUpdate; name = "emacsngSrc"; @@ -198,7 +198,7 @@ librusty_v8 = prev.callPackage ./nix/librusty_v8.nix {}; emacsng = with prev; let - withWebrender = false; + withWebrender = true; in ( final.emacsGcc.override @@ -289,7 +289,7 @@ + '' _librusty_v8_setup() { for v in "$@"; do - install -D ${final.librusty_v8} "rust_src/target/$v/gn_out/obj/librusty_v8.a" + install -D ${final.librusty_v8} "target/$v/gn_out/obj/librusty_v8.a" done } _librusty_v8_setup "debug" "release" "${arch}/release"