about summary refs log tree commit diff
path: root/pkgs/applications/editors/wily/default.nix
blob: a344f93bf241f6948b7758d0c10cb8cb392e26e9 (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
27
28
29
30
31
32
{ lib, stdenv, fetchurl, libX11, libXt } :

stdenv.mkDerivation rec {
  version = "0.13.42";
  pname = "wily";

  src = fetchurl {
    url = "mirror://sourceforge/wily/${pname}-${version}.tar.gz";
    sha256 = "1jy4czk39sh365b0mjpj4d5wmymj98x163vmwzyx3j183jqrhm2z";
  };

  buildInputs = [ libX11 libXt ];

  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
    "-Wno-error=implicit-int"
    "-Wno-error=implicit-function-declaration"
    "-Wno-error=incompatible-function-pointer-types"
  ]);

  preInstall = ''
    mkdir -p $out/bin
  '';

  meta = with lib; {
    description = "Emulation of ACME";
    homepage = "http://wily.sourceforge.net";
    license = licenses.artistic1;
    maintainers = [ ];
    platforms = platforms.unix;
    mainProgram = "wily";
  };
}