From 5a84ab6dd69cb734a35bfb6f9e9b9c3a4ce9956d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 25 Oct 2022 15:31:07 +0200 Subject: pkgs: add tos-firmware --- pkgs/tos-firmware/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pkgs/tos-firmware/default.nix (limited to 'pkgs/tos-firmware') 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 + ''; +} -- cgit v1.2.3