mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
948 B
Nix
34 lines
948 B
Nix
{ lib, stdenv, fetchurl, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nqc";
|
|
version = "3.1.r6";
|
|
|
|
src = fetchurl {
|
|
url = "https://bricxcc.sourceforge.net/nqc/release/nqc-${version}.tgz";
|
|
sha256 = "sha256-v9XmVPY5r3pYjP3vTSK9Xvz/9UexClbOvr3ljvK/52Y=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
patches = [
|
|
./nqc-unistd.patch
|
|
(fetchpatch {
|
|
url = "https://sourceforge.net/p/bricxcc/patches/_discuss/thread/00b427dc/b84b/attachment/nqc-01-Linux_usb_and_tcp.diff";
|
|
sha256 = "sha256-UZmmhhhfLAUus36TOBhiDQ8KUeEdYhGHVFwqKqDIqII=";
|
|
})
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
dontConfigure = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://bricxcc.sourceforge.net/nqc/";
|
|
description = "Programming language for several LEGO MINDSTORMS products including the RCX, CyberMaster, and Scout";
|
|
platforms = platforms.linux;
|
|
license = licenses.mpl10;
|
|
maintainers = with maintainers; [ christophcharles ];
|
|
};
|
|
}
|