Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nix-ocaml/nix-overlays
OCaml-focused, custom nix-overlays
https://github.com/nix-ocaml/nix-overlays
nix ocaml overlays
Last synced: 3 months ago
JSON representation
OCaml-focused, custom nix-overlays
- Host: GitHub
- URL: https://github.com/nix-ocaml/nix-overlays
- Owner: nix-ocaml
- License: mit
- Created: 2019-12-31T03:07:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-01T08:12:31.000Z (7 months ago)
- Last Synced: 2024-05-01T14:27:16.728Z (7 months ago)
- Topics: nix, ocaml, overlays
- Language: Nix
- Homepage:
- Size: 2.23 MB
- Stars: 88
- Watchers: 3
- Forks: 21
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OCaml-focused custom [Nix Overlays](https://nixos.wiki/wiki/Overlays)
This repo contains a set of custom overlays and upgrades over the upstream
nixpkgs set of (mostly) OCaml packages, and a few other curated derivations.## Using this set of packages
### With Flakes
In your `flake.nix`:
```nix
{
# Use this repo as the `nixpkgs` URL
inputs.nixpkgs.url = "github:nix-ocaml/nix-overlays";outputs = { self, nixpkgs }:
let
pkgs = nixpkg.legacyPackages.${"YOUR_SYSTEM_STRING"};
in
{
...
};
}
```#### Alternative (advanced)
```nix
{
inputs.nixpkgs.url = "github:nixOS/nixpkgs";inputs.ocaml-overlay.url = "github:nix-ocaml/nix-overlays";
inputs.ocaml-overlay.inputs.nixpkgs.follows = "nixpkgs";outputs = { self, nixpkgs, ocaml-overlay }:
let
system = "YOUR_SYSTEM_STRING";
pkgs = import nixpkgs {
inherit system;
overlays = [
ocaml-overlay.overlays.default
];
};
in
{
...
};
}
```### Without Flakes
```nix
let
nixpkgs-sources =
builtins.fetchTarball
https://github.com/nix-ocaml/nix-overlays/archive/master.tar.gz;
pkgs = import nixpkgs-sources { };
inpkgs
```#### Alternative (advanced)
```nix
let
nixpkgs-sources =
builtins.fetchTarball
https://github.com/nix-ocaml/nix-overlays/archive/master.tar.gz;custom-nixpkgs = /path/to/custom/nixpkgs;
pkgs = import custom-nixpkgs {
overlays = [
(import "${nixpkgs-sources}/overlay" custom-nixpkgs)
];
};
inpkgs
```## License
Copyright (c) 2023 António Nuno Monteiro.
See the [`MIT License`](./LICENSE) text.
Note: MIT license does not apply to the packages built by nix-overlays, merely
to the files in this repository (the Nix expressions, build scripts, NixOS
modules, etc.). It also might not apply to patches included in the repository,
which may be derivative works of the packages to which they apply. The
aforementioned artifacts are all covered by the licenses of the respective
packages.