nimble2nix
Painless Nimble dependencies in Nix derivations
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Stars | 8 |
| Forks | 1 |
| Open Issues | 2 |
| Last Commit | 2022-07-07 |
| Downloads | 0 |
| Last Indexed | 2026-09-07 06:07 |
Tags
Installation
nimble install nimble2nix
choosenim install nimble2nix
git clone https://github.com/bandithedoge/nimble2nix
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nimble2nix | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/bandithedoge/nimble2nix |
|---|---|
| Homepage | https://github.com/bandithedoge/nimble2nix |
| Registry Source | github |
README
Painless Nimble dependencies in Nix derivations
Usage
Install and run nimble2nix in your Nimble package's directory:
nix-env -iA nixpkgs.fetchgit --arg url "https://github.com/bandithedoge/nimble2nix"
nimble2nix .
This will generate a nimble2nix.json file. Create a nix expression that imports this repo's overlay and calls buildNimblePackage:
let
pkgs = import <nixpkgs> {
overlays = [
((builtins.fetchGit {
url = "https://github.com/bandithedoge/nimble2nix";
}) + "/overlay.nix")
];
};
in pkgs.buildNimblePackage {
pname = "my_package";
version = "0.1";
src = ./.;
}
This is only the bare minimum required to build a package. See example_package/flake.nix for a working example.
TODO
- [ ] Development shells
- [ ] Build phase customization
- [ ] Package overrides