How to install Glamorous Toolkit with Nix
The Nix package definition for Glamorous Toolkit has been merged in to their package repository. Currently only the x86_64 architecture is supported.
If you are using the unstable channel you should be able to just add glamoroustoolkit
to your list of packages.
Otherwise two options for installing GT on a stable channel are:
Clone the repository and install
This has the advantage that it uses the same versions of libraries as are currently installed, so uses a little less disk space on the system disk:
Checkout the package repository:
git clone --depth=1 --branch nixpkgs-unstable git@github.com:NixOS/nixpkgs.git
Update configuration.nix
to build the GT package (updating the path to the derivation as appropriate):
environment.systemPackages = with pkgs; [
(callPackage /path/to/nixpkgs/pkgs/development/tools/glamoroustoolkit { })
]
Install from the unstable branch directly
This has the advantage of not requiring any additional steps to get the derivation, but downloads later versions of libraries.
Update configuration.nix
to include GT:
{ config, pkgs, ... }:
let
unstable = import
(builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/nixpkgs-unstable)
# reuse the current configuration
{ config = config.nixpkgs.config; };
in
{
environment.systemPackages = with pkgs; [
unstable.glamoroustoolkit
];
}
Running GT
After the package is installed the following commands are available:
GlamorousToolkit-GetImage
A simple script to install the latest image in to the current working directory.
GlamorousToolkit and GlamorousToolkit-cli
The GUI and CLI versions of the command line.