-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from knuton/nixpgs-2305
Migrate to Nixpkgs 23.05
- Loading branch information
Showing
11 changed files
with
102 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ buildDunePackage | ||
|
||
, ppx_sexp_conv | ||
, ppx_fields_conv | ||
|
||
, cmdliner | ||
, cohttp-lwt-unix | ||
, logs | ||
, magic-mime | ||
, opium_kernel | ||
, stringext | ||
|
||
, alcotest | ||
}: | ||
|
||
buildDunePackage { | ||
pname = "opium"; | ||
inherit (opium_kernel) version src meta minimumOCamlVersion; | ||
|
||
useDune2 = true; | ||
|
||
doCheck = true; | ||
|
||
buildInputs = [ | ||
ppx_sexp_conv ppx_fields_conv | ||
alcotest | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ lib | ||
, buildDunePackage | ||
, fetchurl | ||
|
||
, ppx_fields_conv | ||
, ppx_sexp_conv | ||
|
||
, cohttp-lwt | ||
, ezjsonm | ||
, hmap | ||
, sexplib | ||
, fieldslib | ||
}: | ||
|
||
buildDunePackage rec { | ||
pname = "opium_kernel"; | ||
version = "0.18.0"; | ||
|
||
useDune2 = true; | ||
|
||
minimumOCamlVersion = "4.04.1"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/rgrinberg/opium/releases/download/${version}/opium-${version}.tbz"; | ||
sha256 = "0a2y9gw55psqhqli3a5ps9mfdab8r46fnbj882r2sp366sfcy37q"; | ||
}; | ||
|
||
doCheck = true; | ||
|
||
buildInputs = [ | ||
ppx_sexp_conv ppx_fields_conv | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
hmap cohttp-lwt ezjsonm sexplib fieldslib | ||
]; | ||
|
||
meta = { | ||
description = "Sinatra like web toolkit for OCaml based on cohttp & lwt"; | ||
homepage = "https://github.com/rgrinberg/opium"; | ||
license = lib.licenses.mit; | ||
maintainers = [ lib.maintainers.pmahoney ]; | ||
}; | ||
} |