hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / by-name / na / nas / package.nix
blobff2ce23c8bc04925b49fd97aaf19d80cbf7edf76
2   lib,
3   stdenv,
4   fetchurl,
5   bison,
6   flex,
7   gccmakedep,
8   imake,
9   libXau,
10   libXaw,
11   libXext,
12   libXpm,
13   libXt,
14   xorgcffiles,
15   xorgproto,
18 stdenv.mkDerivation (finalAttrs: {
19   pname = "nas";
20   version = "1.9.5";
22   src = fetchurl {
23     url = "mirror://sourceforge/nas/nas-${finalAttrs.version}.tar.gz";
24     hash = "sha256-t4hK+zj+7AOhlr07fpxHuAPIMOzRDXRV6cl+Eiw3lEw=";
25   };
27   nativeBuildInputs = [
28     bison
29     flex
30     gccmakedep
31     imake
32   ];
34   buildInputs = [
35     libXau
36     libXaw
37     libXext
38     libXpm
39     libXt
40     xorgproto
41   ];
43   buildFlags = [
44     "WORLDOPTS="
45     "World"
46   ];
48   env.NIX_CFLAGS_COMPILE = toString [
49     "-Wno-error=implicit-function-declaration"
50     "-Wno-error=implicit-int"
51     "-Wno-error=incompatible-pointer-types"
52   ];
54   installFlags = [
55     "LDLIBS=-lfl"
56     "DESTDIR=${placeholder "out"}"
57   ];
59   postInstall = ''
60     mv $out/${xorgcffiles}/* $out
61     rm -fr $out/nix
62   '';
64   meta = {
65     homepage = "http://radscan.com/nas.html";
66     description = "Network transparent, client/server audio transport system";
67     license = lib.licenses.mit;
68     maintainers = [ ];
69     platforms = lib.platforms.linux;
70   };