Evan Relf
319e70637e
Fix incorrect Cabal option for -std=c++17 ( #4 )
...
`cpp-options` is for the C preprocessor (`-XCPP`). `cxx-options` is for
the C++ compiler.
2022-07-13 11:57:29 -07:00
Evan Relf
e3a38c77f8
Ignore Cabal and Nix stuff in .gitignore file ( #5 )
2022-07-13 11:53:22 -07:00
Gabriella Gonzalez
db246ffa56
Use packageSourceOverrides ( #3 )
...
The original reason for not using this was to
work around a mistake on our end. When we specified
`nix` via the `extra-libraries` clause of the `.cabal`
file instead of `pkgconfig-depends` that messed up the
file generated by `cabal2nix` which entailed various
work-arounds. Those workarounds are no longer necessary,
so we can switch to `packageSourceOverrides`
2022-07-06 12:50:53 -07:00
Gabriella Gonzalez
027398c9e9
Increase default timeout ( #2 )
...
... and make the timeout configurable
2022-07-06 12:31:19 -07:00
Gabriella Gonzalez
eaceeeb8ce
Remove spurious print statement ( #1 )
...
I accidentally left this over from debugging the log endpoint
2022-07-06 09:22:29 -07:00
Gabriella Gonzalez
0c0cd76b3e
Switch to BSD 3-clause license
...
Apparently Arista Networks permits this license and it's more widely
used within the Haskell ecosystem
2022-07-05 10:46:15 -07:00
Gabriella Gonzalez
773da02662
Add benchmark suite
2022-07-05 10:13:10 -07:00
Gabriella Gonzalez
f74b94a24a
Fix URL returned in narinfo
...
It was missing the `.nar` suffix
2022-07-01 15:00:29 -07:00
Gabriella Gonzalez
81e3309159
Rename executable to nix-serve
...
… so that it's really a drop-in replacement
2022-07-01 14:30:12 -07:00
Gabriella Gonzalez
670846795d
Flake-enable the project
2022-07-01 14:00:11 -07:00
Gabriella Gonzalez
1881b0385b
Fix potential bug when marshalling string struct
2022-07-01 12:54:58 -07:00
Gabriella Gonzalez
dbf735e77f
Fix /log/ endpoint
...
The old logic would fail to return a result if a later
substituter didn't have the log file, even if an older
This also simplifies the logic.
2022-07-01 12:29:28 -07:00
Gabriella Gonzalez
c8d0b47a7a
Fix nix-serve-ng.cabal
...
… to use `pkgconfig-depends` instead of `extra-libraries`.
The former works better with both `cabal` and `cabal2nix`
2022-07-01 12:00:26 -07:00
Gabriella Gonzalez
01167e8dcb
Fix build on Linux
2022-07-01 11:18:37 -07:00
Gabriella Gonzalez
8fb2184865
Pin Nixpkgs
...
Also, remove `allowBroken = true`, since we don't need it now that
we're not depending on the `bsd-sysctl` package
2022-07-01 11:18:37 -07:00
Gabriella Gonzalez
614ed2ca65
Remove dependence on bsd-sysctl package
...
… since it doesn't work on Linux
2022-06-30 15:59:38 -07:00
Gabriella Gonzalez
24fb4b7fea
Add support for /log/ API
2022-06-30 15:45:40 -07:00
Gabriella Gonzalez
3bd298c02a
Add support for /nar/*.nar endpoint
2022-06-30 15:06:41 -07:00
Gabriella Gonzalez
ba62966149
Allow broken so that bsd-sysctl builds
...
It works on at least MacOS, although Linux still needs to be
fixed.
2022-06-30 13:42:34 -07:00
Gabriella Gonzalez
7f1251cc47
Return 400 status for invalid hashes
2022-06-30 13:42:34 -07:00
Gabriella Gonzalez
87daaac881
Add tuning-related ghc options
2022-06-16 17:07:01 -07:00
Gabriella Gonzalez
9e5e5f45f3
Add support for signatures
2022-06-15 15:40:13 -07:00
Gabriella Gonzalez
8e9c9198fe
Add support for --quiet and --verbose options
2022-06-15 12:44:21 -07:00
Gabriella Gonzalez
39945d0743
Factor out Application logic
2022-06-15 12:24:00 -07:00
Gabriella Gonzalez
b6ee2864ac
Update nix-serve.ng.nix
2022-06-15 12:21:16 -07:00
Gabriella Gonzalez
91eab58f28
Use ExceptT to simplify indentation
2022-06-15 11:01:08 -07:00
Gabriella Gonzalez
ddcf0a04db
Initial commit
2022-06-15 10:21:24 -07:00