Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
/ crafts-flake Public archive

Nix flake for ⭐craft applications and libraries.

License

Notifications You must be signed in to change notification settings

jnsgruk/crafts-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crafts-flake

FlakeHub tests

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

Caution

This flake is now deprecated - snapcraft, rockcraft and charmcraft are now available in upstream nixpkgs, and this repository is no longer maintained.

The code remains in tact in case the approach is a useful reference in the future, but attempting to install the packages will throw an error.

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
  ]
}