diff options
Diffstat (limited to 'pkgs/tos-firmware')
-rw-r--r-- | pkgs/tos-firmware/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/tos-firmware/default.nix b/pkgs/tos-firmware/default.nix new file mode 100644 index 0000000..89e7ebf --- /dev/null +++ b/pkgs/tos-firmware/default.nix @@ -0,0 +1,19 @@ +{ stdenvNoCC, fetchgit +, board +}: + +stdenvNoCC.mkDerivation rec { + pname = "tos-firmware-" + board; + version = "6.0"; + src = fetchgit { + url = "https://gitlab.nic.cz/turris/os/packages.git"; + rev = "v" + version; + sha256 = "087gxdvkrykm2ghn23zscq5nw86am4jqf4nj5hzf6bmc6zxgdnhg"; + }; + + installPhase = '' + mkdir -p $out + cp hardware/${board}/${board}-firmware/files/* $out/ + rm $out/config.sh + ''; +} |