depot/pkgs/by-name/co/compose2nix/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
877 B
Nix
Raw Normal View History

{
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 ];
};
}