Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/non-hackage-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ self: super: {
# Unofficial fork until PRs are merged https://github.com/pcapriotti/optparse-applicative/pulls/roberth
# cabal2nix --maintainer roberth https://github.com/hercules-ci/optparse-applicative.git > pkgs/development/misc/haskell/hercules-ci-optparse-applicative.nix
hercules-ci-optparse-applicative = self.callPackage ../misc/haskell/hercules-ci-optparse-applicative.nix {};

glualint = self.callPackage ../tools/glualint {};
}
77 changes: 77 additions & 0 deletions pkgs/development/tools/glualint/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{ mkDerivation
, aeson
, array
, base
, bytestring
, containers
, directory
, deepseq
, filemanip
, filepath
, ListLike
, MissingH
, mtl
, optparse-applicative
, parsec
, pretty
, signal
, lib
, uu-parsinglib
, uuagc
, uuagc-cabal
, vector
, pkgs
, fetchFromGitHub
}:
mkDerivation rec {
pname = "glualint";
version = "1.24.1";

src = fetchFromGitHub {
owner = "FPtje";
repo = "GLuaFixer";
rev = version;
hash = "sha256-zL0GcrNihSOaw5JkDi04ipOmBq8idj2m0VCKU2J1ZbA=";
};

isLibrary = true;
isExecutable = true;
libraryToolDepends = [ uuagc uuagc-cabal ];
libraryHaskellDepends = [
aeson
array
base
bytestring
containers
directory
filemanip
filepath
ListLike
MissingH
mtl
optparse-applicative
parsec
pretty
signal
uu-parsinglib
uuagc
uuagc-cabal
deepseq
vector
];
executableHaskellDepends = [ base directory ];

preBuild = ''
echo "Generating attribute grammar haskell files"
uuagc --haskellsyntax --data src/GLua/AG/AST.ag
uuagc --haskellsyntax --data --strictdata src/GLua/AG/Token.ag
uuagc --catas --haskellsyntax --semfuns --wrappers --signatures src/GLua/AG/PrettyPrint.ag
uuagc --catas --haskellsyntax --semfuns --wrappers --signatures --optimize src/GLuaFixer/AG/LexLint.ag
uuagc --catas --haskellsyntax --semfuns --wrappers --signatures --optimize src/GLuaFixer/AG/ASTLint.ag
'';

homepage = "https://github.com/FPtje/GLuaFixer";
description = "Linter for Garry's mod Lua";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ ruby0b ];
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17300,6 +17300,8 @@ with pkgs;

global = callPackage ../development/tools/misc/global { };

glualint = haskell.lib.compose.justStaticExecutables haskellPackages.glualint;
Comment thread
ruby0b marked this conversation as resolved.

gnatcoll-db2ada = callPackage ../development/libraries/ada/gnatcoll/db.nix {
component = "gnatcoll_db2ada";
};
Expand Down