22 Commits

Author SHA1 Message Date
70cd4f1ec5
Do not serve derivations with /nix-support/private 2025-10-07 11:06:02 +02:00
Zoe Zuser
d1b8a9a02f
Support Lix 2.92 (#42)
* Support Lix 2.92

nix-serve-ng can now build against lix by passing -f lix to cabal

the flake now also exports the `lix-serve-ng` package for a version that
is built against lix

* add back configureFlags, lost in rebase
2025-05-10 21:19:48 +02:00
Jörg Thalheim
6e8d82a451
fix build against Nix 2.24 (#40)
* bump nixpkgs

* fix build against nix 2.24

* depend on nix 2.24
2024-12-02 15:12:47 +01:00
Naïm Favier
4d9eacfcf7
Support base16 1.0 (#33)
See https://github.com/emilypi/Base16/blob/master/MIGRATION-1.0.md
2024-02-01 15:59:36 -08:00
Gabriella Gonzalez
9b546864f4
Version 1.0.0 → 1.0.1 (#15) 2022-11-25 09:22:29 -07:00
Gabriella Gonzalez
1e42286b14
Fix builds on Darwin (#14)
* Fix builds on Darwin

… using the trick that @roberth taught me here:

https://github.com/NixOS/nixpkgs/pull/196646#issuecomment-1327364634

This requires bumping the Cabal format version, which in turn requires
bumping the version of `cabal2nix`

* Update README
2022-11-25 09:16:11 -07:00
Gabriella Gonzalez
b6cabad434
Include nix.hh in the source distribution (#12)
Fixes https://github.com/aristanetworks/nix-serve-ng/issues/10
2022-11-02 19:25:21 -07:00
Gabriella Gonzalez
b86683efa4
Remove i686 from nix-serve-ng.cabal (#9)
Hackage does not accept `.cabal` files with this architecture
2022-09-23 15:24:04 -07:00
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
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
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
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
614ed2ca65 Remove dependence on bsd-sysctl package
… since it doesn't work on Linux
2022-06-30 15:59:38 -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
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