2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
system,
|
|
|
|
name,
|
|
|
|
ver,
|
|
|
|
url,
|
|
|
|
sha256,
|
|
|
|
configureArgs ? [ ],
|
|
|
|
executable ? false,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
let
|
|
|
|
fetchURL = import <nix/fetchurl.nix>;
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
in
|
|
|
|
derivation {
|
2024-05-02 00:46:19 +00:00
|
|
|
inherit system configureArgs;
|
|
|
|
name = "trivial-bootstrap-${name}-${ver}";
|
|
|
|
dname = "${name}-${ver}";
|
2024-06-30 08:16:52 +00:00
|
|
|
src = fetchURL { inherit url sha256 executable; };
|
2024-05-02 00:46:19 +00:00
|
|
|
builder = ./trivial-builder.sh;
|
|
|
|
}
|