about summary refs log tree commit diff
path: root/nixpkgs-overlays
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-12-22 02:58:17 +0000
committerAlyssa Ross <hi@alyssa.is>2019-12-24 23:03:49 +0000
commit013020e270f15cf490f1dba496b646073aa7bf97 (patch)
tree171ac58aff4a0e067fbd1bd77390d32214f764c2 /nixpkgs-overlays
parentbcd8b054ab68348888e99441d28691bdd65b6ab4 (diff)
downloadnixlib-013020e270f15cf490f1dba496b646073aa7bf97.tar
nixlib-013020e270f15cf490f1dba496b646073aa7bf97.tar.gz
nixlib-013020e270f15cf490f1dba496b646073aa7bf97.tar.bz2
nixlib-013020e270f15cf490f1dba496b646073aa7bf97.tar.lz
nixlib-013020e270f15cf490f1dba496b646073aa7bf97.tar.xz
nixlib-013020e270f15cf490f1dba496b646073aa7bf97.tar.zst
nixlib-013020e270f15cf490f1dba496b646073aa7bf97.zip
direnv: don't store checksums in XDG_CONFIG_HOME
XDG_CONFIG_HOME is read-only here, and is the wrong place for state
like this anyway.
Diffstat (limited to 'nixpkgs-overlays')
-rw-r--r--nixpkgs-overlays/patches/default.nix2
-rw-r--r--nixpkgs-overlays/patches/direnv/default.nix14
2 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs-overlays/patches/default.nix b/nixpkgs-overlays/patches/default.nix
index 54a8071c687f..12bc1ccb67d5 100644
--- a/nixpkgs-overlays/patches/default.nix
+++ b/nixpkgs-overlays/patches/default.nix
@@ -1,6 +1,8 @@
 self: super: {
   bemenu = self.callPackage ./bemenu { inherit (super) bemenu; };
 
+  direnv = self.callPackage ./direnv { inherit (super) direnv; };
+
   firefoxPackages = self.callPackage ./firefox/packages.nix {
     inherit (super) firefoxPackages;
   };
diff --git a/nixpkgs-overlays/patches/direnv/default.nix b/nixpkgs-overlays/patches/direnv/default.nix
new file mode 100644
index 000000000000..9dba1e162aa0
--- /dev/null
+++ b/nixpkgs-overlays/patches/direnv/default.nix
@@ -0,0 +1,14 @@
+{ direnv, lib, fetchpatch }:
+
+direnv.overrideAttrs ({ patches ? [], ... }: {
+  patches = patches ++ [
+    (fetchpatch {
+      url = "https://github.com/direnv/direnv/commit/4765b021415013a2c1c98296a959e40cdff196c9.patch";
+      sha256 = "0vvaq6jdzxh1068xxd9a88ggw75haifi2l08xz3h129lq3nfpp89";
+    })
+    (fetchpatch {
+      url = "https://github.com/direnv/direnv/commit/c483b3aaa338de9857f8dbaef75cd3f6fcb1465e.patch";
+      sha256 = "14lqq1h2lwi5bx0w8xa5q3l332sp92c780f2ifkzv83ilk70r1n4";
+    })
+  ];
+})