Skip to content

Commit

Permalink
st: fix patches passing
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Aug 7, 2018
1 parent 4863416 commit 8bbaf8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkgs/applications/misc/st/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@

with stdenv.lib;

let patches' = if patches == null then [] else patches;
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "st-0.8.1";

src = fetchurl {
url = "https://dl.suckless.org/st/${name}.tar.gz";
sha256 = "09k94v3n20gg32xy7y68p96x9dq5msl80gknf9gbvlyjp3i0zyy4";
};

patches = patches';
inherit patches;

configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18210,7 +18210,7 @@ with pkgs;

st = callPackage ../applications/misc/st {
conf = config.st.conf or null;
patches = config.st.patches or null;
patches = config.st.patches or [];
extraLibs = config.st.extraLibs or [];
};

Expand Down

0 comments on commit 8bbaf8b

Please sign in to comment.