jnsgruk / crafts-flake

Nix flake for ⭐craft applications and libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crafts-flake

FlakeHub tests

A nix flake for the Canonical ⭐craft suite of tools.

Quick start

The default package is charmcraft, which you can build/test with:

# Run charmcraft
$ nix run github:jnsgruk/crafts-flake#charmcraft

# Run rockcraft
$ nix run github:jnsgruk/crafts-flake#rockcraft

# Run snapcraft
$ nix run github:jnsgruk/crafts-flake#snapcraft

Usage

First, add this flake to your flake's inputs

inputs = {
    # ...
    crafts.url = "github:jnsgruk/crafts-flake";
}

Ensure that you configure your system to use the included pkgs overlay:

nixpkgs = {
    overlays = [ inputs.crafts.overlay ]
};

Next, configure your system using the included packages:

{ pkgs, ...}: {
  environment.systemPackages = with pkgs; [
    charmcraft
    rockcraft
    snapcraft
  ]
}

About

Nix flake for ⭐craft applications and libraries.

License:Apache License 2.0


Languages

Language:Nix 84.3%Language:Shell 15.7%