mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
28ac782583
There are many more packages to fix, this is just a start. Rules: * Don't repeat the package name (not always that easy...) * Start with capital letter * Don't end with full stop * Don't start with "The ..." or "A ..." I've also added descriptions to some packages and rewritten others.
29 lines
689 B
Nix
29 lines
689 B
Nix
{ fetchurl, stdenv }:
|
|
|
|
let
|
|
name = "antiword-0.37";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "http://www.winfield.demon.nl/linux/${name}.tar.gz";
|
|
sha256 = "1b7mi1l20jhj09kyh0bq14qzz8vdhhyf35gzwsq43mn6rc7h0b4f";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h
|
|
'';
|
|
|
|
installTargets = "global_install";
|
|
|
|
meta = {
|
|
homepage = "http://www.winfield.demon.nl/";
|
|
description = "Convert MS Word documents to plain text or PostScript";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|