@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+# Don't use this for anything important yet!
4+
5+stdenv.mkDerivation rec {
6+ name = "fscryptctl-unstable-${version}";
7+ version = "2017-09-12";
8+
9+ goPackagePath = "github.com/google/fscrypt";
10+
11+ src = fetchFromGitHub {
12+ owner = "google";
13+ repo = "fscryptctl";
14+ rev = "f037dcf4354ce8f25d0f371b58dfe7a7ac27576f";
15+ sha256 = "1dw1y6jbm2ibn7npvpw6cl28rcz0jz4as2yl6walz7ppmqbj9scf";
16+ };
17+
18+ patches = [ ./install.patch ];
19+
20+ makeFlags = [ "DESTDIR=$(out)/bin" ];
21+
22+ meta = with stdenv.lib; {
23+ description = ''
24+ A low-level tool that handles raw keys and manages policies for Linux
25+ filesystem encryption
26+ '';
27+ inherit (src.meta) homepage;
28+ license = licenses.asl20;
29+ platforms = platforms.linux;
30+ maintainers = with maintainers; [ primeos ];
31+ };
32+}