Skip to content

Commit

Permalink
nex: init at unstable-2021-03-30
Browse files Browse the repository at this point in the history
  • Loading branch information
urandom2 authored and adamcstephens committed Jan 25, 2023
1 parent 3ff3d71 commit 9f39c5f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pkgs/development/tools/parsing/nex/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ buildGoPackage
, fetchFromGitHub
, lib
}:
# upstream is pretty stale, but it still works, so until they merge module
# support we have to use gopath: see blynn/nex#57
buildGoPackage rec {
pname = "nex";
version = "unstable-2021-03-30";

src = fetchFromGitHub {
owner = "blynn";
repo = pname;
rev = "1a3320dab988372f8910ccc838a6a7a45c8980ff";
hash = "sha256-DtJkV380T2B5j0+u7lYZfbC0ej0udF4GW2lbRmmbjAM=";
};

goPackagePath = "github.com/blynn/nex";
subPackages = [ "." ];

meta = with lib; {
description = "Lexer for Go";
homepage = "https://github.com/blynn/nex";
license = licenses.gpl3Only;
maintainers = with maintainers; [ urandom ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17845,6 +17845,8 @@ with pkgs;

nap = callPackage ../development/tools/nap { };

nex = callPackage ../development/tools/parsing/nex {};

ninja = callPackage ../development/tools/build-managers/ninja { };

nimbo = with python3Packages; callPackage ../applications/misc/nimbo { };
Expand Down

0 comments on commit 9f39c5f

Please sign in to comment.