tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fscryptctl: init at 2017-09-12
Michael Weiss
8 years ago
ec075b40
cd4eba7c
+55
3 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
fscryptctl
default.nix
install.patch
top-level
all-packages.nix
+32
pkgs/os-specific/linux/fscryptctl/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub }:
2
2
+
3
3
+
# Don't use this for anything important yet!
4
4
+
5
5
+
stdenv.mkDerivation rec {
6
6
+
name = "fscryptctl-unstable-${version}";
7
7
+
version = "2017-09-12";
8
8
+
9
9
+
goPackagePath = "github.com/google/fscrypt";
10
10
+
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "google";
13
13
+
repo = "fscryptctl";
14
14
+
rev = "f037dcf4354ce8f25d0f371b58dfe7a7ac27576f";
15
15
+
sha256 = "1dw1y6jbm2ibn7npvpw6cl28rcz0jz4as2yl6walz7ppmqbj9scf";
16
16
+
};
17
17
+
18
18
+
patches = [ ./install.patch ];
19
19
+
20
20
+
makeFlags = [ "DESTDIR=$(out)/bin" ];
21
21
+
22
22
+
meta = with stdenv.lib; {
23
23
+
description = ''
24
24
+
A low-level tool that handles raw keys and manages policies for Linux
25
25
+
filesystem encryption
26
26
+
'';
27
27
+
inherit (src.meta) homepage;
28
28
+
license = licenses.asl20;
29
29
+
platforms = platforms.linux;
30
30
+
maintainers = with maintainers; [ primeos ];
31
31
+
};
32
32
+
}
+22
pkgs/os-specific/linux/fscryptctl/install.patch
···
1
1
+
--- a/Makefile 2017-09-24 22:48:19.322116085 +0200
2
2
+
+++ b/Makefile 2017-09-24 22:50:07.655725022 +0200
3
3
+
@@ -19,7 +19,7 @@
4
4
+
CFLAGS += -O2 -Wall
5
5
+
6
6
+
INSTALL = install
7
7
+
-DESTDIR = /usr/local/bin
8
8
+
+DESTDIR ?= /usr/local/bin
9
9
+
10
10
+
OBJECTS = $(NAME).o sha512.o
11
11
+
12
12
+
@@ -38,8 +38,8 @@
13
13
+
@python -m pytest test.py -s -q
14
14
+
15
15
+
install: $(NAME)
16
16
+
- $(INSTALL) -d $(DEST_DIR)
17
17
+
- $(INSTALL) $(NAME) $(DEST_DIR)
18
18
+
+ $(INSTALL) -d $(DESTDIR)
19
19
+
+ $(INSTALL) $(NAME) $(DESTDIR)
20
20
+
21
21
+
clean:
22
22
+
rm -f $(OBJECTS)
+1
pkgs/top-level/all-packages.nix
···
12034
12034
12035
12035
# unstable until the first 1.x release
12036
12036
fscrypt-experimental = callPackage ../os-specific/linux/fscrypt { };
12037
12037
+
fscryptctl-experimental = callPackage ../os-specific/linux/fscryptctl { };
12037
12038
12038
12039
fwupd = callPackage ../os-specific/linux/firmware/fwupd { inherit (gnome2) gtk_doc; inherit (python3Packages) pygobject3 pillow; };
12039
12040