about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/nas/default.nix
blob: d7f71ff185f51396382a357ca26ed41c599da16f (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib
, stdenv
, fetchurl
, bison
, flex
, gccmakedep
, imake
, libXau
, libXaw
, libXext
, libXpm
, libXt
, xorgcffiles
, xorgproto
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "nas";
  version = "1.9.5";

  src = fetchurl {
    url = "mirror://sourceforge/nas/nas-${finalAttrs.version}.tar.gz";
    hash = "sha256-t4hK+zj+7AOhlr07fpxHuAPIMOzRDXRV6cl+Eiw3lEw=";
  };

  nativeBuildInputs = [
    bison
    flex
    gccmakedep
    imake
  ];

  buildInputs = [
    libXau
    libXaw
    libXext
    libXpm
    libXt
    xorgproto
  ];

  buildFlags = [ "WORLDOPTS=" "World" ];

  installFlags = [ "LDLIBS=-lfl" "DESTDIR=${placeholder "out"}" ];

  postInstall = ''
    mv $out/${xorgcffiles}/* $out
    rm -fr $out/nix
  '';

  meta = {
    homepage = "http://radscan.com/nas.html";
    description = "A network transparent, client/server audio transport system";
    license = lib.licenses.mit;
    maintainers = [ ];
    platforms = lib.platforms.linux;
  };
})