#!/usr/bin/env zsh

gup -u ${2:h}/package.yaml ${2:r}.cabal
env -C ${2:h} -- nix run nixos#cabal2nix -- . > $1