summaryrefslogtreecommitdiff
path: root/nix/build.sh
blob: 88f6479fe231b6061eb1f749da3297ffe289dd1d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -ex
rm -f result
rm -f divine-snapshot.tar.gz
rm -rf lvm-snapshot
mkdir lvm-snapshot
git ls-tree -r HEAD --name-only | xargs cp --parents --target-directory=lvm-snapshot
tar cvzf lvm-snapshot.tar.gz lvm-snapshot
nix-build nix/ \
    --arg lvm2Src "`pwd`/lvm-snapshot.tar.gz" \
    --arg lvm2Nix `pwd` -A "$@"