13 src = fetchFromGitHub {
14 owner = "gernotfeichter";
17 hash = "sha256-tE8qKNXLKvFcnDULVkJJ/EJyEsvATCk/3YFkZCmpHSo=";
19 vendorHash = "sha256-AHPVhtm6La7HWuxJfpxTsS5wFTUZUJoVyebLGYhNKTg=";
21 sourceRoot = "${src.name}/linux";
23 # Executing Go commands directly in checkPhase and buildPhase below,
24 # because the default testsuite runs all go tests, some of which require docker.
25 # Docker is too expensive for https://github.com/NixOS/ofborg.
29 go test -run Test_main_init
37 go build -o $GOPATH/bin/alp main.go
43 test-version = runCommand "${pname}-test" { } ''
44 ${alp}/bin/alp version > $out
45 cat $out | grep '${version}'
50 description = "Convenient authentication method that lets you use your android device as a key for your Linux machine";
51 homepage = "https://github.com/gernotfeichter/alp";
52 license = licenses.gpl2Only;
54 maintainers = with maintainers; [ gernotfeichter ];