Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule, fetchFromGitHub, lib }:
2
3buildGoModule rec {
4 pname = "symfony-cli";
5 version = "5.5.6";
6 vendorHash = "sha256-AfgDsd4W8wV0GeymD9SLeHtOeFP9qbFy+GTdMxQSkDA=";
7
8 src = fetchFromGitHub {
9 owner = "symfony-cli";
10 repo = "symfony-cli";
11 rev = "v${version}";
12 sha256 = "sha256-lE8RBjBXucL0DJjEnBLbHqOVE6g358rwmaEUqU6QhOw=";
13 };
14
15 ldflags = [
16 "-s"
17 "-w"
18 "-X main.version=${version}"
19 ];
20
21 postInstall = ''
22 mv $out/bin/symfony-cli $out/bin/symfony
23 '';
24
25 # Tests requires network access
26 checkPhase = ''
27 $GOPATH/bin/symfony-cli
28 '';
29
30 meta = with lib; {
31 description = "Symfony CLI";
32 homepage = "https://github.com/symfony-cli/symfony-cli";
33 license = licenses.agpl3Plus;
34 maintainers = with maintainers; [ drupol ];
35 };
36}