mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 21:37:48 +00:00
fscryptctl: init at 2017-09-12
This commit is contained in:
parent
cd4eba7c0e
commit
ec075b40ec
32
pkgs/os-specific/linux/fscryptctl/default.nix
Normal file
32
pkgs/os-specific/linux/fscryptctl/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
|
||||
# Don't use this for anything important yet!
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fscryptctl-unstable-${version}";
|
||||
version = "2017-09-12";
|
||||
|
||||
goPackagePath = "github.com/google/fscrypt";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "fscryptctl";
|
||||
rev = "f037dcf4354ce8f25d0f371b58dfe7a7ac27576f";
|
||||
sha256 = "1dw1y6jbm2ibn7npvpw6cl28rcz0jz4as2yl6walz7ppmqbj9scf";
|
||||
};
|
||||
|
||||
patches = [ ./install.patch ];
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)/bin" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = ''
|
||||
A low-level tool that handles raw keys and manages policies for Linux
|
||||
filesystem encryption
|
||||
'';
|
||||
inherit (src.meta) homepage;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
};
|
||||
}
|
22
pkgs/os-specific/linux/fscryptctl/install.patch
Normal file
22
pkgs/os-specific/linux/fscryptctl/install.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- a/Makefile 2017-09-24 22:48:19.322116085 +0200
|
||||
+++ b/Makefile 2017-09-24 22:50:07.655725022 +0200
|
||||
@@ -19,7 +19,7 @@
|
||||
CFLAGS += -O2 -Wall
|
||||
|
||||
INSTALL = install
|
||||
-DESTDIR = /usr/local/bin
|
||||
+DESTDIR ?= /usr/local/bin
|
||||
|
||||
OBJECTS = $(NAME).o sha512.o
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
@python -m pytest test.py -s -q
|
||||
|
||||
install: $(NAME)
|
||||
- $(INSTALL) -d $(DEST_DIR)
|
||||
- $(INSTALL) $(NAME) $(DEST_DIR)
|
||||
+ $(INSTALL) -d $(DESTDIR)
|
||||
+ $(INSTALL) $(NAME) $(DESTDIR)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS)
|
@ -12034,6 +12034,7 @@ with pkgs;
|
||||
|
||||
# unstable until the first 1.x release
|
||||
fscrypt-experimental = callPackage ../os-specific/linux/fscrypt { };
|
||||
fscryptctl-experimental = callPackage ../os-specific/linux/fscryptctl { };
|
||||
|
||||
fwupd = callPackage ../os-specific/linux/firmware/fwupd { inherit (gnome2) gtk_doc; inherit (python3Packages) pygobject3 pillow; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user