aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tos-firmware/default.nix
blob: 89e7ebf887c69e473c06265b71c6ce688c4ec1e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
  '';
}