From: Jörg Thalheim Date: Thu, 2 Jan 2020 08:53:41 +0000 (+0000) Subject: add default.nix for installation via nix X-Git-Tag: v0.5.7~47^2~2 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=03897445ea1a108a2638dd74fbb93c942bb61e44;p=kconfig-hardened-check.git add default.nix for installation via nix Allows installation via nix from the repository itself on NixOS and other Linux distribution that have Nix (i.e. Archlinux/Debian). ``` $ nix-build $ ./result/bin/kconfig-hardened-check $ nix-env -f . -i ``` It also provides an development environment for `nix-shell` with setuptools and python in path ``` $ nix-shell ``` --- diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..b37caf6 --- /dev/null +++ b/default.nix @@ -0,0 +1,8 @@ +{ pkgs ? (import {}) }: +with pkgs; + +pkgs.python3.pkgs.buildPythonPackage { + name = "kconfig-hardend-check"; + src = ./.; + SOURCE_DATE_EPOCH = "1523278946"; +}