Skip to content

Commit 409b394

Browse files
committed
nix-index: patch to remove xorg
It got dropped on nixpkgs master.
1 parent d68e3c2 commit 409b394

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

flake.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@
3636
'';
3737
};
3838

39+
# TODO: drop after getting fixed
40+
# https://github.com/nix-community/nix-index/pull/296
41+
nix-index-unwrapped = prev.nix-index-unwrapped.overrideAttrs (oa: {
42+
postPatch = (oa.postPatch or "") + ''
43+
patch -p1 <<-EOF
44+
--- a/src/listings.rs
45+
+++ b/src/listings.rs
46+
@@ -26,2 +26 @@
47+
-pub const EXTRA_SCOPES: [&str; 6] = [
48+
- "xorg",
49+
+pub const EXTRA_SCOPES: [&str; 5] = [
50+
EOF
51+
'';
52+
});
53+
3954
nixos-channel-scripts = final.stdenv.mkDerivation {
4055
name = "nixos-channel-scripts";
4156

0 commit comments

Comments
 (0)