mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, nix-update-script
|
|
, testers
|
|
, symfony-cli
|
|
, nssTools
|
|
, makeBinaryWrapper
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "symfony-cli";
|
|
version = "5.8.6";
|
|
vendorHash = "sha256-ACK0JCaS1MOCgUi2DMEjIcKf/nMCcrdDyIdioBZv7qw=";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symfony-cli";
|
|
repo = "symfony-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-lZ4jPmqPGyWp8xS156XXl6s4ZfNbU4M5xJy25nRL1Bs=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
"-X main.channel=stable"
|
|
];
|
|
|
|
buildInputs = [ makeBinaryWrapper ];
|
|
|
|
postInstall = ''
|
|
mkdir $out/libexec
|
|
mv $out/bin/symfony-cli $out/libexec/symfony
|
|
|
|
makeBinaryWrapper $out/libexec/symfony $out/bin/symfony \
|
|
--prefix PATH : ${lib.makeBinPath [ nssTools ]}
|
|
'';
|
|
|
|
# Tests requires network access
|
|
doCheck = false;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
inherit version;
|
|
package = symfony-cli;
|
|
command = "symfony version --no-ansi";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/symfony-cli/symfony-cli/releases/tag/v${version}";
|
|
description = "Symfony CLI";
|
|
homepage = "https://github.com/symfony-cli/symfony-cli";
|
|
license = lib.licenses.agpl3Plus;
|
|
mainProgram = "symfony";
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
};
|
|
}
|