-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
28 lines (22 loc) · 801 Bytes
/
default.nix
File metadata and controls
28 lines (22 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, makeBinaryWrapper, rustPlatform, fetchFromGitHub, pkgs, cargo, pkg-config
, openssl, libseccomp, sqlcipher, ... }:
rustPlatform.buildRustPackage rec {
pname = "sshield";
version = "0.1.0";
src = ./.;
cargoLock = { lockFile = ./Cargo.lock; };
cargoSha256 = "";
nativeBuildInputs =
[ makeBinaryWrapper cargo rustPlatform.cargoSetupHook pkg-config ];
buildInputs = [ openssl libseccomp sqlcipher ];
wrapperPath = lib.makeBinPath ([ pkgs.kdePackages.kdialog pkgs.zenity ]);
checkPhase = false;
postFixup = ''
wrapProgram $out/bin/sshield --prefix PATH : "${wrapperPath}"
'';
meta = with lib; {
description = "A secure, drop-in, opinionated SSH agent replacement";
homepage = "https://git.sr.ht/~gotlou/sshield";
license = licenses.gpl2Plus;
};
}