~amjoseph/nix-garta

nix expression to build garta (Timo Saarinen's lightweight Rust maptile viewer)
README.md: use cherry-pick in instructions

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~amjoseph/nix-garta
read/write
git@git.sr.ht:~amjoseph/nix-garta

You can also use your local clone with git send-email.

#Nix expression for the Garta map viewer

Garta is a lightweight no-nonsense maptile viewer written in Rust by Timo Saarinen. This repository contains a nix expression to build it.

#Screenshot

Garta screenshot

#Nixpkgs Preconditions

If the following have not yet been merged to nixpkgs, you will need to cherry-pick them manually:

  1. https://github.com/NixOS/nixpkgs/pull/190602
  2. https://github.com/NixOS/nixpkgs/pull/190604
  3. https://github.com/NixOS/nixpkgs/pull/190605
  4. https://github.com/NixOS/nixpkgs/pull/190606
  5. https://github.com/NixOS/nixpkgs/pull/190607
  6. https://github.com/NixOS/nixpkgs/pull/190610
  7. https://github.com/NixOS/nixpkgs/pull/190613
  8. https://github.com/NixOS/nixpkgs/pull/190614

You can do this by pasting the following into the terminal:

cd $NIX_PATH/nixpkgs
git fetch https://github.com/NixOS/nixpkgs/ pull/190602/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190604/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190605/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190606/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190607/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190610/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190613/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD
git fetch https://github.com/NixOS/nixpkgs/ pull/190614/head; git cherry-pick $(git merge-base FETCH_HEAD HEAD)..FETCH_HEAD

#Usage

Set your NIX_PATH ($NIX_PATH/nixpkgs must point to a copy of nixpkgs); then:

# Check out this repository.
git clone https://git.sr.ht/~amjoseph/nix-garta
cd nix-garta

# use nixpkgs' `crate2nix` to generate `Cargo.nix`
make

# build garta
nix build -f default.nix -L --arg pkgs '(import <nixpkgs> { }).pkgs'