@@ -1,15 +1,14 @@
1{ stdenv, fetchurl }:
1{ stdenv, fetchurl }:
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4− name = "dtach-0.8";
4+ name = "dtach-${version}";
6 src = fetchurl {
7 src = fetchurl {
7− url = "mirror://sourceforge/project/dtach/dtach/0.8/dtach-0.8.tar.gz";
8+ url = "mirror://sourceforge/project/dtach/dtach/${version}/${name}.tar.gz";
8− sha256 = "16614ebddf8ab2811d3dc0e7f329c7de88929ac6a9632d4cb4aef7fe11b8f2a9";
9+ sha256 = "1wwj2hlngi8qn2pisvhyfxxs8gyqjlgrrv5lz91w8ly54dlzvs9j";
11− patches = [ ./fix-CVE-2012-3368.patch ];
13 installPhase = ''
12 installPhase = ''
14 mkdir -p $out/bin
13 mkdir -p $out/bin
15 cp dtach $out/bin/dtach
14 cp dtach $out/bin/dtach
@@ -19,12 +18,14 @@ stdenv.mkDerivation rec {
19 homepage = http://dtach.sourceforge.net/;
18 homepage = http://dtach.sourceforge.net/;
20 description = "A program that emulates the detach feature of screen";
19 description = "A program that emulates the detach feature of screen";
22− longDescription = ''dtach is a tiny program that emulates the
22+ dtach is a tiny program that emulates the detach feature of
23− detach feature of screen, allowing you to run a program in an
23+ screen, allowing you to run a program in an environment that is
24− environment that is protected from the controlling terminal and
24+ protected from the controlling terminal and attach to it later.
25− attach to it later. dtach does not keep track of the contents of
25+ dtach does not keep track of the contents of the screen, and
26− the screen, and thus works best with programs that know how to
26+ thus works best with programs that know how to redraw
27− redraw themselves.'';
27+ themselves.
29 license = stdenv.lib.licenses.gpl2Plus;
30 license = stdenv.lib.licenses.gpl2Plus;