From 5c871cdf838ab4479071f3f5f90c2213e321a444 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Wed, 1 Jun 2022 09:10:50 -0700 Subject: [PATCH] conform: init at 0.1.0-alpha.25 fix: removes trailing period in package description chore: adds jk as maintainer test: enforces running tests conform: init at 0.1.0-alpha.25 fix: fixes review comments conform: init at 0.1.0-alpha.25 --- .../git-and-tools/conform/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/conform/default.nix diff --git a/pkgs/applications/version-management/git-and-tools/conform/default.nix b/pkgs/applications/version-management/git-and-tools/conform/default.nix new file mode 100644 index 000000000000..23ed7dc1b486 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/conform/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub, git }: + +buildGoModule rec { + pname = "conform"; + version = "0.1.0-alpha.25"; + + src = fetchFromGitHub { + owner = "siderolabs"; + repo = "conform"; + rev = "v${version}"; + sha256 = "sha256-WgWgigpqPoEBY4tLjbzK02WFwrCWPGQWJ5eakLv5IWw="; + }; + + vendorSha256 = "sha256-Oigt7tAK4jhBQtfG1wdLHqi11NWu6uJn5fmuqTmR76E="; + + ldflags = [ + "-s" + "-w" + "-X github.com/talos-systems/conform/internal/version.Tag=v${version}" + ]; + + checkInputs = [ git ]; + + meta = with lib; { + description = "Policy enforcement for your pipelines"; + homepage = "https://github.com/siderolabs/conform"; + license = licenses.mpl20; + maintainers = with maintainers; [ jmgilman jk ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cad446e147fe..b528d426f9f5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5561,6 +5561,8 @@ with pkgs; choose = callPackage ../tools/text/choose { }; + conform = callPackage ../applications/version-management/git-and-tools/conform { }; + emscripten = callPackage ../development/compilers/emscripten { llvmPackages = llvmPackages_13; };