summary refs log tree commit diff
path: root/pkgs/os-specific/linux/fscrypt/default.nix
blob: cdd42e98f06b13ff99192cfce8c6d6ec9659a11b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, buildGoPackage, fetchFromGitHub, pam }:

# Don't use this for anything important yet!

buildGoPackage rec {
  pname = "fscrypt";
  version = "unstable-2019-08-29";

  goPackagePath = "github.com/google/fscrypt";

  goDeps = ./deps.nix;

  src = fetchFromGitHub {
    owner = "google";
    repo = "fscrypt";
    rev = "8a3acda2011e9a080ee792c1e11646e6118a4930";
    sha256 = "17h6r5lqiz0cw9vsixv48a1p78nd7bs1kncg6p4lfagl7kr5hpls";
  };

  buildInputs = [ pam ];

  meta = with stdenv.lib; {
    description =
      "A high-level tool for the management of Linux filesystem encryption";
    longDescription = ''
      This tool manages metadata, key generation, key wrapping, PAM integration,
      and provides a uniform interface for creating and modifying encrypted
      directories.
    '';
    inherit (src.meta) homepage;
    license = licenses.asl20;
    platforms = platforms.linux;
    maintainers = with maintainers; [ primeos ];
  };
}