Skip to content

Commit 313a018

Browse files
committed
Patch DVTM to use self-pipe, making it work on more platforms
1 parent 77ce79d commit 313a018

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pkgs/tools/misc/dvtm/default.nix

+11-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ stdenv.mkDerivation rec {
99
sha256 = "0475w514b7i3gxk6khy8pfj2gx9l7lv2pwacmq92zn1abv01a84g";
1010
};
1111

12+
patches = [
13+
# https://github.com/martanne/dvtm/pull/69
14+
# Use self-pipe instead of signal blocking fixes issues on darwin.
15+
(fetchurl {
16+
url = "https://github.com/martanne/dvtm/commit/1f1ed664d64603f3f1ce1388571227dc723901b2.patch";
17+
sha256 = "1cby8x3ckvhzqa8yxlfrwzgm8wk7yz84kr9psdjr7xwpnca1cqrd";
18+
})
19+
];
20+
21+
CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
22+
1223
postPatch = stdenv.lib.optionalString (customConfig != null) ''
1324
cp ${builtins.toFile "config.h" customConfig} ./config.h
1425
'';
@@ -28,7 +39,6 @@ stdenv.mkDerivation rec {
2839
description = "Dynamic virtual terminal manager";
2940
homepage = http://www.brain-dump.org/projects/dvtm;
3041
license = licenses.mit;
31-
platforms = platforms.linux;
3242
maintainers = [ maintainers.vrthra ];
3343
};
3444
}

0 commit comments

Comments
 (0)