nixbook: add prefetch script
This commit is contained in:
parent
5dbe3f07a7
commit
9903d1949e
1 changed files with 7 additions and 0 deletions
|
|
@ -344,5 +344,12 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "prefetch-url";
|
||||||
|
text = ''
|
||||||
|
nix-build -E "with import <nixpkgs> {}; fetchzip {url = \"$1\"; sha256 = lib.fakeSha256; }"
|
||||||
|
'';
|
||||||
|
install = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue