Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, stdenv
3, fetchurl
4, bison
5, flex
6, gccmakedep
7, imake
8, libXau
9, libXaw
10, libXext
11, libXpm
12, libXt
13, xorgcffiles
14, xorgproto
15}:
16
17stdenv.mkDerivation (finalAttrs: {
18 pname = "nas";
19 version = "1.9.5";
20
21 src = fetchurl {
22 url = "mirror://sourceforge/nas/nas-${finalAttrs.version}.tar.gz";
23 hash = "sha256-t4hK+zj+7AOhlr07fpxHuAPIMOzRDXRV6cl+Eiw3lEw=";
24 };
25
26 nativeBuildInputs = [
27 bison
28 flex
29 gccmakedep
30 imake
31 ];
32
33 buildInputs = [
34 libXau
35 libXaw
36 libXext
37 libXpm
38 libXt
39 xorgproto
40 ];
41
42 buildFlags = [ "WORLDOPTS=" "World" ];
43
44 installFlags = [ "LDLIBS=-lfl" "DESTDIR=${placeholder "out"}" ];
45
46 postInstall = ''
47 mv $out/${xorgcffiles}/* $out
48 rm -fr $out/nix
49 '';
50
51 meta = {
52 homepage = "http://radscan.com/nas.html";
53 description = "A network transparent, client/server audio transport system";
54 license = lib.licenses.mit;
55 maintainers = [ ];
56 platforms = lib.platforms.linux;
57 };
58})