2022-01-13 20:06:32 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "yaml-merge";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "unstable-2022-01-12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abbradar";
|
|
|
|
repo = "yaml-merge";
|
2022-01-19 23:45:15 +00:00
|
|
|
rev = "2f0174fe92fc283dd38063a3a14f7fe71db4d9ec";
|
|
|
|
sha256 = "sha256-S2eZw+FOZvOn0XupZDRNcolUPd4PhvU1ziu+kx2AwnY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonPath = with python3Packages; [ pyyaml ];
|
|
|
|
nativeBuildInputs = with python3Packages; [ wrapPython ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 yaml-merge.py $out/bin/yaml-merge
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Merge YAML data files";
|
|
|
|
homepage = "https://github.com/abbradar/yaml-merge";
|
|
|
|
license = licenses.bsd2;
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|