pam_ussh: init at unstable-20210615

+81
+64
pkgs/os-specific/linux/pam_ussh/default.nix
··· 1 + { buildGoModule 2 + , fetchFromGitHub 3 + , pam 4 + , lib 5 + }: 6 + 7 + buildGoModule rec { 8 + pname = "pam_ussh"; 9 + version = "unstable-20210615"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "uber"; 13 + repo = "pam-ussh"; 14 + rev = "e9524bda90ba19d3b9eb24f49cb63a6a56a19193"; # HEAD as of 2022-03-13 15 + sha256 = "0nb9hpqbghgi3zvq41kabydzyc6ffaaw9b4jkc5jrwn1klpw1xk8"; 16 + }; 17 + 18 + prePatch = '' 19 + cp ${./go.mod} go.mod 20 + ''; 21 + overrideModAttrs = (_: { 22 + inherit prePatch; 23 + }); 24 + 25 + vendorSha256 = "0hjifc3kbwmx7kjn858vi05cwwra6q19cqjfd94k726pwhk37qkw"; 26 + 27 + buildInputs = [ 28 + pam 29 + ]; 30 + 31 + buildPhase = '' 32 + runHook preBuild 33 + 34 + if [ -z "$enableParallelBuilding" ]; then 35 + export NIX_BUILD_CORES=1 36 + fi 37 + go build -buildmode=c-shared -o pam_ussh.so -v -p $NIX_BUILD_CORES . 38 + 39 + runHook postBuild 40 + ''; 41 + checkPhase = '' 42 + runHook preCheck 43 + 44 + go test -v -p $NIX_BUILD_CORES . 45 + 46 + runHook postCheck 47 + ''; 48 + installPhase = '' 49 + runHook preInstall 50 + 51 + mkdir -p $out/lib/security 52 + cp pam_ussh.so $out/lib/security 53 + 54 + runHook postInstall 55 + ''; 56 + 57 + meta = with lib; { 58 + homepage = "https://github.com/uber/pam-ussh"; 59 + description = "PAM module to authenticate using SSH certificates"; 60 + license = licenses.mit; 61 + platforms = platforms.linux; 62 + maintainers = with maintainers; [ lukegb ]; 63 + }; 64 + }
+15
pkgs/os-specific/linux/pam_ussh/go.mod
··· 1 + module github.com/uber/pam-ussh 2 + 3 + go 1.17 4 + 5 + require ( 6 + github.com/stretchr/testify v1.7.0 7 + golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000 8 + ) 9 + 10 + require ( 11 + github.com/davecgh/go-spew v1.1.0 // indirect 12 + github.com/pmezard/go-difflib v1.0.0 // indirect 13 + golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect 14 + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect 15 + )
+2
pkgs/top-level/all-packages.nix
··· 23052 23052 23053 23053 pam_usb = callPackage ../os-specific/linux/pam_usb { }; 23054 23054 23055 + pam_ussh = callPackage ../os-specific/linux/pam_ussh { }; 23056 + 23055 23057 paxctl = callPackage ../os-specific/linux/paxctl { }; 23056 23058 23057 23059 paxtest = callPackage ../os-specific/linux/paxtest { };