Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
walint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hub
walint
Commits
fc9f714d
Commit
fc9f714d
authored
3 years ago
by
stuebinm
Browse files
Options
Downloads
Patches
Plain Diff
add install instructions, remove nix/guix
parent
aa897bb7
No related branches found
No related tags found
No related merge requests found
Pipeline
#10102
passed
3 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Readme.md
+60
-0
60 additions, 0 deletions
Readme.md
build.nix
+0
-5
0 additions, 5 deletions
build.nix
default.nix
+0
-21
0 additions, 21 deletions
default.nix
manifest.scm
+0
-71
0 additions, 71 deletions
manifest.scm
with
60 additions
and
97 deletions
Readme.md
+
60
−
0
View file @
fc9f714d
...
...
@@ -10,6 +10,66 @@ copying all needed assets and minifying the map's json. This is used to simulate
a
`bbbRoom`
property (via
`openWebsite`
), collect and remove badge tokens before
maps are published, and to resolve special-schema URIs (e.g.
`world://`
).
## Installing
### From the CI pipeline
Gitlab
[
automatically builds a version
](
https://git.cccv.de/hub/walint/-/jobs
)
of
`walint`
each time something is pushed to this repository. The resulting
binary should work fine on most linux systems, especially if they're vaguely
debian-like.
In case you get an incomprehensible or confusing error when executing it, try
running
`ldd walint`
and see if anything is marked as not found, then install it.
### Build using stack
This uses a lockfile to pin versions of dependencies (as well as
`ghc`
, the haskell
compiler). You will need
[
stack
](
https://docs.haskellstack.org/en/stable/README/
)
.
Then just run
```
stack build
```
If you lack
`ghc`
in the correct version and don't know how to install it, you can
pass it
`--install-ghc`
to take care of that for you (note that on Nix,
`stack`
may
automatically use a fitting
`ghc`
derivation if it finds one).
To install into your
`$PATH`
, use
```
stack install
```
Alternatively, run
`walint`
via stack:
```
stack run -- walint [options as normal]
```
However, in this case stack will re-check files every time to ensure your build
is up to date with the sources, which will make it slower to start.
### Build using cabal
Note that this does not pin dependencies, and
`walint`
currently does not even
define semver ranges to ensure it compiles at all! Even so, you can use
[
cabal
](
https://www.haskell.org/cabal/
)
if for some reason you absolutely must,
as long as your package list is sufficiently recent.
Run:
```
cabal update
cabal build
```
Note that
`cabal`
might decide to pull in an older version of Aeson which is
still vulnerable to hash flooding; in that case
`walint`
will print a warning
on startup.
## Usage
```
sh
walint
--config-file
config.json
--repository
path
\
...
...
This diff is collapsed.
Click to expand it.
build.nix
deleted
100644 → 0
+
0
−
5
View file @
aa897bb7
let
sources
=
import
./nix/sources.nix
{};
nixpkgs
=
import
sources
.
nixpkgs
{};
in
nixpkgs
.
haskellPackages
.
callPackage
./default.nix
{}
This diff is collapsed.
Click to expand it.
default.nix
deleted
100644 → 0
+
0
−
21
View file @
aa897bb7
{
mkDerivation
,
aeson
,
aeson-pretty
,
base
,
bytestring
,
bytestring-encoding
,
containers
,
either
,
extra
,
filepath
,
getopt-generics
,
lib
,
mtl
,
regex-tdfa
,
text
,
transformers
,
vector
}:
mkDerivation
{
pname
=
"walint"
;
version
=
"0.1.0.0"
;
src
=
./.
;
isLibrary
=
true
;
isExecutable
=
true
;
libraryHaskellDepends
=
[
aeson
base
bytestring
containers
either
extra
filepath
getopt-generics
mtl
regex-tdfa
text
transformers
vector
];
executableHaskellDepends
=
[
aeson
aeson-pretty
base
bytestring
bytestring-encoding
getopt-generics
text
];
license
=
"unknown"
;
hydraPlatforms
=
lib
.
platforms
.
none
;
}
This diff is collapsed.
Click to expand it.
manifest.scm
deleted
100644 → 0
+
0
−
71
View file @
aa897bb7
(
define-module
(
guix
walint
)
#
:use-module
(
guix
download
)
#
:use-module
(
guix
gexp
)
#
:use-module
(
guix
profiles
)
#
:use-module
(
gnu
packages
haskell
)
#
:use-module
(
gnu
packages
haskell-web
)
#
:use-module
(
gnu
packages
haskell-xyz
)
#
:use-module
(
guix
packages
)
#
:use-module
(
guix
git-download
)
#
:use-module
(
guix
build-system
haskell
)
#
:use-module
(
guix
licenses
)
#
:use-module
(
srfi
srfi-1
))
;; the regex packages provided by current guix are a little too old,
;; and would result in a missing typeclass instance
(
define
ghc-regex-base-newer
(
package
(
inherit
ghc-regex-base
)
(
version
"0.94.0.1"
)
(
source
(
origin
(
method
url-fetch
)
(
uri
(
string-append
"https://hackage.haskell.org/package/regex-base/regex-base-"
version
".tar.gz"
))
(
sha256
(
base32
"1ngdmmrxs1rhvib052c6shfa40yad82jylylikz327r0zxpxkcbi"
))))))
(
define
ghc-regex-tdfa-newer
(
package
(
inherit
ghc-regex-tdfa
)
(
version
"1.3.1.1"
)
(
inputs
`
((
"ghc-regex-base"
,
ghc-regex-base-newer
)
(
"ghc-utf8-string"
,
ghc-utf8-string
)))
(
source
(
origin
(
method
url-fetch
)
(
uri
(
string-append
"https://hackage.haskell.org/package/regex-tdfa/regex-tdfa-"
version
".tar.gz"
))
(
sha256
(
base32
"1msrq31k4jmn2lmrdzn87jqarqhw265ca69rfg5jpa5adrzm3gmi"
))))))
(
define-public
walint
(
package
(
name
"walint"
)
(
version
"0.1"
)
(
source
(
local-file
""
#
:recursive?
#t
))
(
build-system
haskell-build-system
)
(
arguments
'
())
(
inputs
`
((
"ghc"
,
ghc
)
(
"ghc-aeson"
,
ghc-aeson
)
(
"ghc-regex-tdfa"
,
ghc-regex-tdfa-newer
)
(
"ghc-getopt-generics"
,
ghc-getopt-generics
)
(
"ghc-aeson-pretty"
,
ghc-aeson-pretty
)
(
"ghc-either"
,
ghc-either
)
(
"ghc-extra"
,
ghc-extra
)
(
"ghc-bytestring-builder"
,
ghc-bytestring-builder
)))
(
home-page
"https://stuebinm.eu/git/walint"
)
(
synopsis
"linter for workadventure maps"
)
(
description
"linter for workadventure maps"
)
(
license
"undecided"
)))
(
packages->manifest
`
(
,walint
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment