summary refs log tree commit diff
path: root/pkgs/tools/misc/ms-sys/default.nix
blob: 315dbce74070ea747c2e7749e25d869fb42dffdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, gettext }:

stdenv.mkDerivation rec {
  pname = "ms-sys";
  version = "2.6.0";

  src = fetchurl {
    url = "mirror://sourceforge/ms-sys/${pname}-${version}.tar.gz";
    sha256 = "06xqpm2s9cg8fj7a1822wmh3p4arii0sifssazg1gr6i7xg7kbjz";
  };
  # TODO: Remove with next release, see https://sourceforge.net/p/ms-sys/patches/8/
  patches = [ ./manpages-without-build-timestamps.patch ];

  nativeBuildInputs = [ gettext ];

  enableParallelBuilding = true;

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with stdenv.lib; {
    description = "A program for writing Microsoft-compatible boot records";
    homepage = "http://ms-sys.sourceforge.net/";
    license = licenses.gpl2Plus;
    platforms = with platforms; linux;
  };
}