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