mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stdenv, fetchurl
|
|
, openssl, tdb, zlib, flex, bison
|
|
}:
|
|
let
|
|
buildInputs = [ openssl tdb zlib flex bison ];
|
|
sourceInfo = rec {
|
|
baseName="fdm";
|
|
version = "1.8";
|
|
name="${baseName}-${version}";
|
|
url="mirror://sourceforge/${baseName}/${baseName}/${name}.tar.gz";
|
|
sha256 = "0hi39f31ipv8f9wxb41pajvl61w6vaapl39wq8v1kl9c7q6h0k2g";
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
src = fetchurl {
|
|
inherit (sourceInfo) url sha256;
|
|
};
|
|
|
|
inherit (sourceInfo) name version;
|
|
inherit buildInputs;
|
|
|
|
preBuild = ''
|
|
export makeFlags="$makeFlags PREFIX=$out"
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Dbool=int"
|
|
|
|
sed -i */Makefile -i Makefile -e 's@ -g bin @ @'
|
|
sed -i */Makefile -i Makefile -e 's@ -o root @ @'
|
|
sed -i GNUmakefile -e 's@ -g $(BIN_OWNER) @ @'
|
|
sed -i GNUmakefile -e 's@ -o $(BIN_GROUP) @ @'
|
|
sed -i */Makefile -i Makefile -i GNUmakefile -e 's@-I-@@g'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
|
|
maintainers = with stdenv.lib.maintainers;
|
|
[
|
|
raskin
|
|
];
|
|
platforms = with stdenv.lib.platforms;
|
|
linux;
|
|
homepage = http://fdm.sourceforge.net/;
|
|
inherit (sourceInfo) version;
|
|
updateWalker = true;
|
|
};
|
|
}
|