From 013020e270f15cf490f1dba496b646073aa7bf97 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 22 Dec 2019 02:58:17 +0000 Subject: 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. --- nixpkgs-overlays/patches/default.nix | 2 ++ nixpkgs-overlays/patches/direnv/default.nix | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 nixpkgs-overlays/patches/direnv/default.nix (limited to 'nixpkgs-overlays') 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"; + }) + ]; +}) -- cgit 1.4.1