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 {
|
2021-08-02 09:12:13 +00:00
|
|
|
pname = "yaml-merge";
|
2022-01-12 07:20:41 +00:00
|
|
|
version = "unstable-2022-01-12";
|
2016-02-16 09:57:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abbradar";
|
|
|
|
repo = "yaml-merge";
|
2022-01-12 07:20:41 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-02-16 09:57:29 +00:00
|
|
|
description = "Merge YAML data files";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "yaml-merge";
|
2020-04-01 01:11:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|