Skip to content

Nix development and build utilities for gotk4 development.

Notifications You must be signed in to change notification settings

diamondburned/gotk4-nix

Repository files navigation

gotk4-nix

Usage

Create .nix/default.nix

{ action }:

let src = import ./src.nix;

in import "${src.gotk4-nix}/${action}.nix" {
	base = import ./base.nix;
}

Use like so:

nix-build .nix --argstr action build-cross
nix-build .nix --argstr action build-package
{}: import ./.nix { action = "shell"; }

build-cross

build-package cross-compiles for Linux x86_64 and aarch64. It generates the following:

result
├── gtkcord4-linux-aarch64.tar.gz
├── gtkcord4-linux-x86_64.tar.gz
├── gtkcord4-nixos-aarch64.tar.gz
└── gtkcord4-nixos-x86_64.tar.gz

build-package

build-package creates a proper Nix package. It generates the following:

result
├── bin
│   └── gtkcord4
└── share
    ├── applications
    │   └── com.github.diamondburned.gtkcord4.desktop
    └── icons
        └── hicolor
            └── 256x256
                └── apps
                    └── gtkcord4.png

About

Nix development and build utilities for gotk4 development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published