aboutsummaryrefslogtreecommitdiff
path: root/tests/fetchurl.sh
blob: bb6180ca3954cd8b3fd0e1b67f8d4b450066f4ee (plain)
1
2
3
4
5
6
7
8
9
source common.sh

clearStore

hash=$(nix-hash --flat --type sha256 ./fetchurl.nix)

outPath=$(nix-build ./fetchurl.nix --argstr filename $(pwd)/fetchurl.nix --argstr sha256 $hash)

cmp $outPath fetchurl.nix