git.iko.soy/typeable/nixpkgs
on master help sign in
fscryptctl: init at 2017-09-12
commitec075b40ec5127cd1dc42601309e32254c00a993 authorMichael Weiss <dev.primeos@gmail.com> dateSun 24 Sep 2017, 23:00 (9 years ago) parentcd4eba7
3 files changed+55
pkgs/os-specific/linux/fscryptctl/default.nix+32 pkgs/os-specific/linux/fscryptctl/install.patch+22 pkgs/top-level/all-packages.nix+1
pkgs/os-specific/linux/fscryptctl/default.nixnew file+32
@@ -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+}
pkgs/os-specific/linux/fscryptctl/install.patchnew file+22
@@ -0,0 +1,22 @@
1+--- a/Makefile 2017-09-24 22:48:19.322116085 +0200
2++++ b/Makefile 2017-09-24 22:50:07.655725022 +0200
3+@@ -19,7 +19,7 @@
4+ CFLAGS += -O2 -Wall
5+
6+ INSTALL = install
7+-DESTDIR = /usr/local/bin
8++DESTDIR ?= /usr/local/bin
9+
10+ OBJECTS = $(NAME).o sha512.o
11+
12+@@ -38,8 +38,8 @@
13+ @python -m pytest test.py -s -q
14+
15+ install: $(NAME)
16+- $(INSTALL) -d $(DEST_DIR)
17+- $(INSTALL) $(NAME) $(DEST_DIR)
18++ $(INSTALL) -d $(DESTDIR)
19++ $(INSTALL) $(NAME) $(DESTDIR)
20+
21+ clean:
22+ rm -f $(OBJECTS)
pkgs/top-level/all-packages.nix+1
@@ -12034,6 +12034,7 @@ with pkgs;
1203412034
1203512035 # unstable until the first 1.x release
1203612036 fscrypt-experimental = callPackage ../os-specific/linux/fscrypt { };
12037+ fscryptctl-experimental = callPackage ../os-specific/linux/fscryptctl { };
1203712038
1203812039 fwupd = callPackage ../os-specific/linux/firmware/fwupd { inherit (gnome2) gtk_doc; inherit (python3Packages) pygobject3 pillow; };
1203912040