diff options
Diffstat (limited to 'gup/cabal2nix.sh')
-rwxr-xr-x | gup/cabal2nix.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gup/cabal2nix.sh b/gup/cabal2nix.sh new file mode 100755 index 0000000..ba23c4e --- /dev/null +++ b/gup/cabal2nix.sh | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/usr/bin/env zsh | ||
2 | |||
3 | gup -u ${2:r}.cabal | ||
4 | |||
5 | cd ${2:h} | ||
6 | cabal2nix ./. >! ${1} | ||