1{ stdenv, buildGoPackage, fetchFromGitHub, pam }:
2
3# Don't use this for anything important yet!
4
5buildGoPackage rec {
6 name = "fscrypt-${version}";
7 version = "0.2.4";
8
9 goPackagePath = "github.com/google/fscrypt";
10
11 src = fetchFromGitHub {
12 owner = "google";
13 repo = "fscrypt";
14 rev = "v${version}";
15 sha256 = "10gbyqzgi30as1crvqbb4rc5p8zzbzk1q5j080h1gnz56qzwivr8";
16 };
17
18 buildInputs = [ pam ];
19
20 meta = with stdenv.lib; {
21 description =
22 "A high-level tool for the management of Linux filesystem encryption";
23 longDescription = ''
24 This tool manages metadata, key generation, key wrapping, PAM integration,
25 and provides a uniform interface for creating and modifying encrypted
26 directories.
27 '';
28 inherit (src.meta) homepage;
29 license = licenses.asl20;
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ primeos ];
32 };
33}