add: yubilock nix package
This commit is contained in:
21
pkgs/linux/yubilock/default.nix
Normal file
21
pkgs/linux/yubilock/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
name = "yubilock";
|
||||
runtimeInputs = with pkgs; [
|
||||
systemd
|
||||
coreutils
|
||||
yubikey-manager
|
||||
gawk
|
||||
getent
|
||||
logger
|
||||
];
|
||||
yubilock = (pkgs.writeScriptBin name (builtins.readFile ./yubilock.sh)).overrideAttrs (old: {
|
||||
buildCommand = "${old.buildCommand}\n patchShebangs $out";
|
||||
});
|
||||
in
|
||||
pkgs.symlinkJoin {
|
||||
inherit name;
|
||||
paths = [ yubilock ] ++ runtimeInputs;
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = "wrapProgram $out/bin/${name} --prefix PATH : $out/bin";
|
||||
}
|
||||
Reference in New Issue
Block a user