Skip to content

About

Nix Flake for Loop Messenger

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

loop-messenger-nix

Nix flake for Loop Messenger. Repackages the official Linux and macOS builds.

linux macOS CI

Quick Start

Try without installing:

nix run github:blackfan321/loop-messenger-nix

Install into your profile:

nix profile install github:blackfan321/loop-messenger-nix

Installation

NixOS Flake

{
  inputs = {
    nixpkgs = {
      url = "github:nixos/nixpkgs/nixos-unstable";
    };
    loop-messenger = {
      url = "github:blackfan321/loop-messenger-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { nixpkgs, loop-messenger, ... }: {
    nixosConfigurations.hostname = nixpkgs.lib.nixosSystem {
      modules = [{ pkgs, ... }: {
        environment.systemPackages = [
          loop-messenger.packages.${pkgs.stdenv.hostPlatform.system}.loop-desktop
        ];
      }];
    };
  };
}

Home Manager

{ inputs, pkgs, ... }:
{
  home.packages = [
    inputs.loop-messenger.packages.${pkgs.stdenv.hostPlatform.system}.loop-desktop
  ];
}

Platforms

  • x86_64-linux
  • aarch64-linux
  • aarch64-darwin

Devshell

Allow direnv to activate the flake devshell:

direnv allow

You'll also likely need nix-direnv. The shell provides just, jq, nvfetcher, sed, and the pre-commit packages.

Or enter the shell directly:

nix develop

Just

just is a command runner (like make, but simpler). Included in the devshell.

Command Description
just update-application Runs nvfetcher and refreshes README version badges
just update-sources Runs nvfetcher
just update-badges Refreshes README version badges from _sources/generated.json

Pre-commit

Pre-commit hooks are installed automatically when you enter the devshell via git-hooks.nix / prek.

Upstream

Version source:

Source artifacts:

  • Linux x86_64: https://artifacts.wilix.dev/repository/loop-files/loop-{version}/loop-desktop-{version}-linux-x86_64.AppImage
  • Linux aarch64: https://artifacts.wilix.dev/repository/loop-files/loop-{version}/loop-desktop-{version}-linux-arm64.AppImage
  • macOS: https://artifacts.wilix.dev/repository/loop-files/loop-{version}/loop-desktop-{version}-mac-arm64.dmg

The aarch64 AppImage is not listed on the download page, but is published alongside the x86_64 build — its URL is derived from the tracked version.

Versions and source hashes are managed with nvfetcher, which generates Nix expressions to _sources/generated.nix. Source metadata is stored in _sources/generated.json.

Automated Updates

Schedule: daily at 06:00 UTC

What it does:

  • Updates sources using nvfetcher
  • Refreshes README version badges
  • Opens a PR on chore/update-loop when versions change

Example PR title / commit message:

chore: update Loop Messenger (6.0.3 → 6.0.4)

PR body is the nvfetcher changelog.

Trigger: push to main when _sources/generated.json changes

What it does:

  • Creates a GitHub Release X.Y.Z

Example release:

  • Tag: 6.0.4
  • Name: 6.0.4
  • Notes: Loop Messenger 6.0.4

About

Nix Flake for Loop Messenger

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages