add default.nix for installation via nix
authorJörg Thalheim <joerg@thalheim.io>
Thu, 2 Jan 2020 08:53:41 +0000 (08:53 +0000)
committerAlexander Popov <alex.popov@linux.com>
Thu, 26 Mar 2020 13:52:25 +0000 (16:52 +0300)
commit03897445ea1a108a2638dd74fbb93c942bb61e44
tree71dbad6cfff701c5e2e93bb0dd7bec7ad3f28acb
parent3f293bca658caee384f42b9d8e9932d30f2e4f21
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
```
default.nix [new file with mode: 0644]