haskellPackages.glualint: init at 1.24.3#233112
Conversation
|
Could you ask upstream if they would consider making releases to Hackage? It is easier for us (and other Linux distros) to package Haskell packages if they have been released to Hackage. |
|
they said they would try uploading a hackage release when they get the time, I guess the PR is on hold for now |
FPtje
left a comment
There was a problem hiding this comment.
Thanks for the effort to add glualint to nixpkgs! I've added some preliminary comments.
|
|
||
| preBuild = '' | ||
| echo "Generating attribute grammar haskell files" | ||
| uuagc --haskellsyntax --data src/GLua/AG/AST.ag |
There was a problem hiding this comment.
It appears that the cabal sdist command I'll use to upload glualint will already turn the UUAGC .ag files into .hs files.
When glualint is uploaded to hackage, I'm hoping that the Nixpkgs hackage script will automatically pick it up and add it to pkgs/development/haskell-modules/hackage-packages.nix, making this entire file no longer needed.
| # Needs OneTuple for ghc < 9.2 | ||
| binary-orphans = addBuildDepends [ self.OneTuple ] super.binary-orphans; | ||
|
|
||
| # 2023-05-212: doesn't support Cabal >= 3.8 but GHC 9 works since it ships cabal 3.6 |
|
Glualint has just been uploaded to hackage: https://hackage.haskell.org/package/glualint I'm not sure how often the "refresh haddock packages" script for nixpkgs runs, but I think the next run should pick it up? |
|
The Hackage pin has just been bumped in the |
|
Awesome! I see one of the marked broken dependencies is On commit: 3620f98 I know this package was incompatible with GHC 9.2 and 9.4, but that was fixed in version 1.3.0.0. Would it be possible to unmark this package as broken? Another package marked broken is |
|
Update: Glualint builds if I simply mark |
|
@FPtje Thanks for the debugging. Could you send a PR marking uuagc-cabal and uuagc as now unbroken to the |
|
glualint builds on haskell-updates now. |
Description of changes
(corrected and updated version of #222356)
glualint is a linter and pretty printer for Garry's Mod's variant of Lua.
The derivation pretty much just uses the project's own default.nix.
The package is not available on hackage and the version stated in its cabal file is a constant 0.1.0.0 (even though the github release is at version 1.24.3). The derivation uses the github release version.
Things done
./result/bin/)