blob: 9ac41bc9d8bda7065940a0ef92fff6398f7bfeda [file] [log] [blame]
David Brown79c4fcf2021-01-26 15:04:05 -07001# SPDX-License-Identifier: Apache-2.0
Rajiv Ranganathce6fe632019-12-30 18:35:51 +05302#
3# Nix environment for imgtool
4#
5# To install the environment
6#
7# $ nix-env --file imgtool.nix --install env-imgtool
8#
9# To load the environment
10#
11# $ load-env-imgtool
12#
13with import <nixpkgs> {};
14let
15 # Nixpkgs has fairly recent versions of the dependencies, so we can
16 # rely on them without having to build our own derivations.
17 imgtoolPythonEnv = python37.withPackages (
18 _: [
19 python37.pkgs.click
20 python37.pkgs.cryptography
21 python37.pkgs.intelhex
22 python37.pkgs.setuptools
David Vincze71b8f982020-03-17 19:08:12 +010023 python37.pkgs.cbor
Rajiv Ranganathce6fe632019-12-30 18:35:51 +053024 ]
25 );
26in
27myEnvFun {
28 name = "imgtool";
29
30 buildInputs = [ imgtoolPythonEnv ];
31}