Files
nixpkgs/pkgs/by-name/un/unconvert/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
816 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule {
pname = "unconvert";
version = "0-unstable-2025-02-16";
src = fetchFromGitHub {
owner = "mdempsky";
repo = "unconvert";
rev = "4a038b3d31f56ff5ba511953b745c80a2317e4ae";
hash = "sha256-97H5rlb4buRT6I3OUID8/UARFtCTDhIxnPCkpFF9RDs=";
};
vendorHash = "sha256-Yh33ZvQoMG9YM8bdxlMYEIwH2QMTwv2HSYSmA4C9EpA=";
ldflags = [
"-s"
"-w"
];
passthru.updateScript = nix-update-script { extraArgs = lib.singleton "--version=branch"; };
meta = {
description = "Remove unnecessary type conversions from Go source";
mainProgram = "unconvert";
homepage = "https://github.com/mdempsky/unconvert";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ kalbasit ];
};
}