about summary refs log blame commit diff
path: root/tests/fetchurl.sh
blob: 6acc87eafca814148f03bf835aeeb6b0e55c5b97 (plain) (tree)
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 --no-out-link)

cmp $outPath fetchurl.nix