mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
26 lines
733 B
Nix
26 lines
733 B
Nix
|
{ testers, fetchzip, ... }:
|
||
|
|
||
|
let
|
||
|
zipUrl = "https://gist.github.com/glandium/01d54cefdb70561b5f6675e08f2990f2/archive/2f430f0c136a69b0886281d0c76708997d8878af.zip";
|
||
|
in
|
||
|
{
|
||
|
simple = testers.invalidateFetcherByDrvHash fetchzip {
|
||
|
inherit zipUrl;
|
||
|
sha256 = "sha256-0ecwgL8qUavSj1+WkaxpmRBmu7cvj53V5eXQV71fddU=";
|
||
|
};
|
||
|
|
||
|
postFetch = testers.invalidateFetcherByDrvHash fetchzip {
|
||
|
inherit zipUrl;
|
||
|
sha256 = "sha256-7sAOzKa+9vYx5XyndHxeY2ffWAjOsgCkXC9anK6cuV0=";
|
||
|
postFetch = ''touch $out/filee'';
|
||
|
};
|
||
|
|
||
|
#extraPostFetch = testers.invalidateFetcherByDrvHash fetchzip {
|
||
|
# inherit url;
|
||
|
# sha256 = "sha256-UC8oJqojqpjqa72UpT0QTME+UwQhVVk5/d9mgRPDR20=";
|
||
|
# extraPostFetch = ''
|
||
|
# touch $out/afile
|
||
|
# '';
|
||
|
#};
|
||
|
}
|