git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31238 from c0bw3b/pkg/fdm

fdm: 1.8 -> 1.9.0.20170124

commitcc3c38d78807955959e9cc87c060a17355c0d6c9 authorMichael Raskin <7c6f434c@mail.ru> dateSat 4 Nov 2017, 12:36 (9 years ago) parenteafd7035fe398f
1 file changed+25−39
pkgs/tools/networking/fdm/default.nix+25−39
pkgs/tools/networking/fdm/default.nix+25−39
@@ -1,45 +1,31 @@
1−{ stdenv, fetchurl
2− , openssl, tdb, zlib, flex, bison
3− }:
4−let
5− buildInputs = [ openssl tdb zlib flex bison ];
6− sourceInfo = rec {
7− baseName="fdm";
8− version = "1.8";
9− name="${baseName}-${version}";
10− url="mirror://sourceforge/${baseName}/${baseName}/${name}.tar.gz";
11− sha256 = "0hi39f31ipv8f9wxb41pajvl61w6vaapl39wq8v1kl9c7q6h0k2g";
12− };
1+{ stdenv, fetchFromGitHub, autoreconfHook, openssl, tdb, zlib, flex, bison }:
2+
3+let
4+
5+ baseName = "fdm";
6+ version = "1.9.0.20170124";
7+
138in
14−stdenv.mkDerivation {
15− src = fetchurl {
16− inherit (sourceInfo) url sha256;
9+
10+stdenv.mkDerivation rec {
11+ name = "${baseName}-${version}";
12+
13+ src = fetchFromGitHub {
14+ owner = "nicm";
15+ repo = baseName;
16+ rev = "cae4ea37b6b296d1b2e48f62934ea3a7f6085e33";
17+ sha256 = "048191wdv1yprwinipmx2152gvd2iq1ssv7xfb1bzh6zirh1ya3n";
1718 };
1819
19− inherit (sourceInfo) name version;
20− inherit buildInputs;
21−
22− preBuild = ''
23− export makeFlags="$makeFlags PREFIX=$out"
24− export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Dbool=int"
25−
26− sed -i */Makefile -i Makefile -e 's@ -g bin @ @'
27− sed -i */Makefile -i Makefile -e 's@ -o root @ @'
28− sed -i GNUmakefile -e 's@ -g $(BIN_OWNER) @ @'
29− sed -i GNUmakefile -e 's@ -o $(BIN_GROUP) @ @'
30− sed -i */Makefile -i Makefile -i GNUmakefile -e 's@-I-@@g'
31− '';
32−
33− meta = {
20+ nativeBuildInputs = [ autoreconfHook ];
21+ buildInputs = [ openssl tdb zlib flex bison ];
22+
23+
24+ meta = with stdenv.lib; {
3425 description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
35− maintainers = with stdenv.lib.maintainers;
36− [
37− raskin
38− ];
39− platforms = with stdenv.lib.platforms;
40− linux;
41− homepage = http://fdm.sourceforge.net/;
42− inherit (sourceInfo) version;
43− updateWalker = true;
26+ maintainers = with maintainers; [ raskin ];
27+ platforms = with platforms; linux;
28+ homepage = https://github.com/nicm/fdm;
29+ downloadPage = https://github.com/nicm/fdm/releases;
4430 };
4531}