summaryrefslogtreecommitdiff
path: root/gup
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-07-10 11:51:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-07-10 11:51:34 +0200
commitffac1727b92167ca6847b7ae3adc71f091d8048f (patch)
tree7ff9c375782d347d6ef3da3a3d02b7e39aad3c44 /gup
parent20e7a2a2544afd682f487327aa42d1899784db98 (diff)
downloadnixos-ffac1727b92167ca6847b7ae3adc71f091d8048f.tar
nixos-ffac1727b92167ca6847b7ae3adc71f091d8048f.tar.gz
nixos-ffac1727b92167ca6847b7ae3adc71f091d8048f.tar.bz2
nixos-ffac1727b92167ca6847b7ae3adc71f091d8048f.tar.xz
nixos-ffac1727b92167ca6847b7ae3adc71f091d8048f.zip
...
Diffstat (limited to 'gup')
-rw-r--r--gup/Gupfile2
-rw-r--r--gup/cabal2nix.gup4
2 files changed, 6 insertions, 0 deletions
diff --git a/gup/Gupfile b/gup/Gupfile
new file mode 100644
index 00000000..0c9b6b80
--- /dev/null
+++ b/gup/Gupfile
@@ -0,0 +1,2 @@
1cabal2nix.gup:
2 hosts/surtr/email/spm/spm.nix \ No newline at end of file
diff --git a/gup/cabal2nix.gup b/gup/cabal2nix.gup
new file mode 100644
index 00000000..ce623eee
--- /dev/null
+++ b/gup/cabal2nix.gup
@@ -0,0 +1,4 @@
1#!/usr/bin/env zsh
2
3gup -u ${2:h}/package.yaml ${2:r}.cabal
4env -C ${2:h} -- nix run nixos#cabal2nix -- . > $1 \ No newline at end of file