depot/pkgs/by-name/co/compose2nix/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
877 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
testers,
compose2nix,
}:
buildGoModule rec {
pname = "compose2nix";
version = "0.2.3";
src = fetchFromGitHub {
owner = "aksiksi";
repo = "compose2nix";
rev = "v${version}";
hash = "sha256-qN7MFw6JKBbzwiqURkZ3or/8hT29mRpfITovSHdzDEY=";
};
vendorHash = "sha256-yGBdsej6DjRMWzS13WyqCLaY5M/N9BrMARAM3oHsc+s=";
passthru.tests = {
version = testers.testVersion {
package = compose2nix;
version = "compose2nix v${version}";
};
};
meta = {
homepage = "https://github.com/aksiksi/compose2nix";
changelog = "https://github.com/aksiksi/compose2nix/releases/tag/${src.rev}";
description = "Generate a NixOS config from a Docker Compose project";
license = lib.licenses.mit;
mainProgram = "compose2nix";
maintainers = with lib.maintainers; [ aksiksi ];
};
}