2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, gccmakedep
|
|
|
|
, imake
|
|
|
|
, libXau
|
|
|
|
, libXaw
|
|
|
|
, libXext
|
|
|
|
, libXpm
|
|
|
|
, libXt
|
|
|
|
, xorgcffiles
|
|
|
|
, xorgproto
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (self: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nas";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.9.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-12 12:48:02 +00:00
|
|
|
url = "mirror://sourceforge/nas/nas-${self.version}.tar.gz";
|
|
|
|
hash = "sha256-t4hK+zj+7AOhlr07fpxHuAPIMOzRDXRV6cl+Eiw3lEw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
gccmakedep
|
|
|
|
imake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libXau
|
|
|
|
libXaw
|
|
|
|
libXext
|
|
|
|
libXpm
|
|
|
|
libXt
|
|
|
|
xorgproto
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildFlags = [ "WORLDOPTS=" "World" ];
|
|
|
|
|
|
|
|
installFlags = [ "LDLIBS=-lfl" "DESTDIR=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/${xorgcffiles}/* $out
|
2023-04-12 12:48:02 +00:00
|
|
|
rm -fr $out/nix
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://radscan.com/nas.html";
|
2023-04-12 12:48:02 +00:00
|
|
|
description = "A network transparent, client/server audio transport system";
|
|
|
|
license = lib.licenses.mit;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2023-04-12 12:48:02 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-04-12 12:48:02 +00:00
|
|
|
})
|