about summary refs log tree commit diff
path: root/pkgs/applications/version-management/silver-platter
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2023-09-23 15:42:12 +0000
committerLuke Granger-Brown <git@lukegb.com>2023-10-14 01:52:55 +0000
commit0c702bd8af9a0351ad1279817b525810383999e2 (patch)
tree910e087656c909511e5847dd04c1c1bebe7a04e5 /pkgs/applications/version-management/silver-platter
parent8ca1a9e376ec8f22bdf8fb537c735f2dc8b2c85e (diff)
silver-platter: init at 0.5.12
Diffstat (limited to 'pkgs/applications/version-management/silver-platter')
-rw-r--r--pkgs/applications/version-management/silver-platter/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/silver-platter/default.nix b/pkgs/applications/version-management/silver-platter/default.nix
new file mode 100644
index 0000000000000..1e5720f0d0ab7
--- /dev/null
+++ b/pkgs/applications/version-management/silver-platter/default.nix
@@ -0,0 +1,44 @@
+{ buildPythonApplication
+, lib
+, fetchFromGitHub
+, setuptools
+, setuptools-rust
+, rustPlatform
+, cargo
+, rustc
+, breezy
+, dulwich
+, jinja2
+, pyyaml
+, ruamel-yaml
+}:
+
+buildPythonApplication rec {
+  pname = "silver-platter";
+  version = "0.5.12";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "jelmer";
+    repo = "silver-platter";
+    rev = version;
+    hash = "sha256-QkTT9UcJuGDAwpp/CtXobPvfTYQzFakBR72MhF//Bpo=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-QLnKu9D23FVp1jCSuxN3odPZ1ToAZ6i/FNS8BkmNuQw=";
+  };
+
+  propagatedBuildInputs = [ setuptools breezy dulwich jinja2 pyyaml ruamel-yaml ];
+  nativeBuildInputs = [ setuptools-rust rustPlatform.cargoSetupHook cargo rustc ];
+
+  meta = with lib; {
+    description = "Automate the creation of merge proposals for scriptable changes";
+    homepage = "https://jelmer.uk/code/silver-platter";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ lukegb ];
+    mainProgram = "svp";
+  };
+}