Notably fwupd, pipewire and flatpak. I want to focus on GNOME and other packages I still actually use. Pipewire is still important but I have not touched the packaging in a while.
36 lines
1,013 B
Nix
36 lines
1,013 B
Nix
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
|
|
|
|
let
|
|
pname = "php-cs-fixer";
|
|
version = "3.16.0";
|
|
in
|
|
mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
|
|
sha256 = "sha256-B4VzfsSwcffR/t4eREMLH9jRWCTumYel6GM4rpumVBY=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
install -D $src $out/libexec/php-cs-fixer/php-cs-fixer.phar
|
|
makeWrapper ${php}/bin/php $out/bin/php-cs-fixer \
|
|
--add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/${version}";
|
|
description = "A tool to automatically fix PHP coding standards issues";
|
|
license = licenses.mit;
|
|
homepage = "https://cs.symfony.com/";
|
|
maintainers = with maintainers; [ ] ++ teams.php.members;
|
|
};
|
|
}
|