nixpkgs/pkgs/servers/nas/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
968 B
Nix
Raw Normal View History

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