Merge pull request #16380 from elitak/dislocker
dislocker: init at 0.6.1
This commit is contained in:
commit
d2f9f251aa
3 changed files with 45 additions and 0 deletions
13
pkgs/tools/filesystems/dislocker/cmake_dirfix.patch
Normal file
13
pkgs/tools/filesystems/dislocker/cmake_dirfix.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 365903a..f126ade 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -149,7 +149,7 @@ if(NOT DEFINED bindir)
|
||||
endif()
|
||||
|
||||
string (TOLOWER "${CMAKE_SYSTEM_NAME}" SYSNAME)
|
||||
-set (DIS_MAN ../man/${SYSNAME})
|
||||
+set (DIS_MAN ${PROJECT_SOURCE_DIR}/man/${SYSNAME})
|
||||
|
||||
# RPATH handling
|
||||
if(POLICY CMP0042)
|
30
pkgs/tools/filesystems/dislocker/default.nix
Normal file
30
pkgs/tools/filesystems/dislocker/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchFromGitHub
|
||||
, cmake
|
||||
, polarssl , fuse
|
||||
}:
|
||||
with stdenv.lib;
|
||||
let
|
||||
version = "0.6.1";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dislocker-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aorimn";
|
||||
repo = "dislocker";
|
||||
rev = "v${version}";
|
||||
sha256 = "1s2pvsf4jgzxk9d9m2ik7v7g81lvj8mhmhh7f53vwy0vmihf9h0d";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fuse polarssl ];
|
||||
|
||||
patches = [ ./cmake_dirfix.patch ];
|
||||
|
||||
meta = {
|
||||
description = "Read BitLocker encrypted partitions in Linux";
|
||||
homepage = https://github.com/aorimn/dislocker;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ elitak ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -739,6 +739,8 @@ in
|
|||
asciidoc = asciidoc-full;
|
||||
};
|
||||
|
||||
dislocker = callPackage ../tools/filesystems/dislocker { };
|
||||
|
||||
ditaa = callPackage ../tools/graphics/ditaa { };
|
||||
|
||||
dlx = callPackage ../misc/emulators/dlx { };
|
||||
|
|
Loading…
Reference in a new issue