zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / nq / nqc / package.nix
blob1ff73d14f404275a31e6a712da45db16d4e64993
2   lib,
3   stdenv,
4   fetchurl,
5   fetchpatch,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "nqc";
10   version = "3.1.r6";
12   src = fetchurl {
13     url = "https://bricxcc.sourceforge.net/nqc/release/nqc-${version}.tgz";
14     sha256 = "sha256-v9XmVPY5r3pYjP3vTSK9Xvz/9UexClbOvr3ljvK/52Y=";
15   };
17   sourceRoot = ".";
19   patches = [
20     ./nqc-unistd.patch
21     (fetchpatch {
22       url = "https://sourceforge.net/p/bricxcc/patches/_discuss/thread/00b427dc/b84b/attachment/nqc-01-Linux_usb_and_tcp.diff";
23       sha256 = "sha256-UZmmhhhfLAUus36TOBhiDQ8KUeEdYhGHVFwqKqDIqII=";
24     })
25   ];
27   makeFlags = [ "PREFIX=$(out)" ];
29   dontConfigure = true;
31   meta = with lib; {
32     homepage = "https://bricxcc.sourceforge.net/nqc/";
33     description = "Programming language for several LEGO MINDSTORMS products including the RCX, CyberMaster, and Scout";
34     platforms = platforms.linux;
35     license = licenses.mpl10;
36     maintainers = with maintainers; [ christophcharles ];
37   };