nixpkgs/pkgs/tools/text/yaml-merge/default.nix

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

30 lines
790 B
Nix
Raw Normal View History

2022-01-10 17:17:51 +00:00
{ lib, stdenv, fetchFromGitHub, python3Packages }:
2016-02-16 09:57:29 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "yaml-merge";
version = "unstable-2022-01-12";
2016-02-16 09:57:29 +00:00
src = fetchFromGitHub {
owner = "abbradar";
repo = "yaml-merge";
rev = "2f0174fe92fc283dd38063a3a14f7fe71db4d9ec";
sha256 = "sha256-S2eZw+FOZvOn0XupZDRNcolUPd4PhvU1ziu+kx2AwnY=";
2016-02-16 09:57:29 +00:00
};
2022-01-10 17:17:51 +00:00
pythonPath = with python3Packages; [ pyyaml ];
nativeBuildInputs = with python3Packages; [ wrapPython ];
2016-02-16 09:57:29 +00:00
installPhase = ''
install -Dm755 yaml-merge.py $out/bin/yaml-merge
wrapPythonPrograms
'';
meta = with lib; {
2016-02-16 09:57:29 +00:00
description = "Merge YAML data files";
homepage = "https://github.com/abbradar/yaml-merge";
2016-02-16 09:57:29 +00:00
license = licenses.bsd2;
2021-03-03 11:59:33 +00:00
platforms = platforms.unix;
2016-02-16 09:57:29 +00:00
maintainers = with maintainers; [ abbradar ];
};
}