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