mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Add a test for the fetchurl function
This commit is contained in:
parent
035aa11403
commit
51f9f9924b
3 changed files with 17 additions and 1 deletions
9
tests/fetchurl.sh
Normal file
9
tests/fetchurl.sh
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue