aboutsummaryrefslogtreecommitdiff
path: root/pkgs/crypto-wrapper
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-08-08 08:27:06 +0200
committerKarel Kočí <cynerd@email.cz>2022-08-08 08:27:06 +0200
commit07896ee61dba47bc57c4c3b3b819033dc0324a1b (patch)
tree42ee9d052e6738e7b5dac4a1842f20f72bf4ed96 /pkgs/crypto-wrapper
parentdefa8544d9437116a652827db62cbbf1f8933d5e (diff)
downloadnixturris-07896ee61dba47bc57c4c3b3b819033dc0324a1b.tar.gz
nixturris-07896ee61dba47bc57c4c3b3b819033dc0324a1b.tar.bz2
nixturris-07896ee61dba47bc57c4c3b3b819033dc0324a1b.zip
Turris Omnia cross build now should work
Diffstat (limited to 'pkgs/crypto-wrapper')
-rw-r--r--pkgs/crypto-wrapper/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/crypto-wrapper/default.nix b/pkgs/crypto-wrapper/default.nix
new file mode 100644
index 0000000..3f431b2
--- /dev/null
+++ b/pkgs/crypto-wrapper/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, lib, fetchgit
+, bash
+, makeWrapper
+}:
+
+stdenv.mkDerivation rec {
+ pname = "crypto-wrapper";
+ version = "0.4";
+ meta = with lib; {
+ homepage = "https://gitlab.nic.cz/turris/crypto-wrapper";
+ description = "Simple script abstracting access to the Turris crypto backend.";
+ platforms = platforms.linux;
+ license = licenses.gpl3;
+ };
+
+ src = fetchgit {
+ url = "https://gitlab.nic.cz/turris/crypto-wrapper.git";
+ rev = "v" + version;
+ sha256 = "1ly37cajkmgqmlj230h5az9m2m1rgvf4r0bf94yipp80wl0z215s";
+ };
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp crypto-wrapper.sh $out/bin/crypto-wrapper
+ wrapProgram $out/bin/crypto-wrapper \
+ --prefix PATH : ${lib.makeBinPath [ bash openssl coreutils ]}
+ '';
+}