1{ lib, stdenv, fetchurl, gettext }:
2
3stdenv.mkDerivation rec {
4 pname = "ms-sys";
5 version = "2.6.0";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/ms-sys/${pname}-${version}.tar.gz";
9 sha256 = "06xqpm2s9cg8fj7a1822wmh3p4arii0sifssazg1gr6i7xg7kbjz";
10 };
11 # TODO: Remove with next release, see https://sourceforge.net/p/ms-sys/patches/8/
12 patches = [ ./manpages-without-build-timestamps.patch ];
13
14 nativeBuildInputs = [ gettext ];
15
16 enableParallelBuilding = true;
17
18 makeFlags = [ "PREFIX=$(out)" ];
19
20 meta = with lib; {
21 description = "A program for writing Microsoft-compatible boot records";
22 homepage = "https://ms-sys.sourceforge.net/";
23 license = licenses.gpl2Plus;
24 platforms = with platforms; linux;
25 };
26}