about summary refs log tree commit diff
path: root/pkgs/by-name/re
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2024-06-12 23:32:18 +0300
committerGitHub <noreply@github.com>2024-06-12 23:32:18 +0300
commitc870e19d09a9f539fd322039843d1cf705c65f3c (patch)
treec19178e3892d0ad88a21d2cda64920eba12b0747 /pkgs/by-name/re
parent11f7253de8c917fad62e15bfcb29ff86766dc2ab (diff)
parent661165e502a301ba1c9c2a4c23fe90d53fb0a3fa (diff)
Merge pull request #291453 from atorres1985-contrib/resorter
resorter: init at 0-unstable-2023-07-14
Diffstat (limited to 'pkgs/by-name/re')
-rw-r--r--pkgs/by-name/re/resorter/package.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/re/resorter/package.nix b/pkgs/by-name/re/resorter/package.nix
new file mode 100644
index 0000000000000..c717ff495462b
--- /dev/null
+++ b/pkgs/by-name/re/resorter/package.nix
@@ -0,0 +1,46 @@
+{
+  lib,
+  fetchFromGitHub,
+  rPackages,
+  rWrapper,
+  stdenv,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "resorter";
+  version = "0-unstable-2023-07-14";
+
+  src = fetchFromGitHub {
+    owner = "hiAndrewQuinn";
+    repo = "resorter";
+    rev = "81f8922d41d062794e1563a468cb5ca78680436b";
+    hash = "sha256-oC1atQNxwXcsTjom/SCBUsLhHJJEBwqKh0BN9/mvRTU=";
+  };
+
+  buildInputs = [
+    (rWrapper.override {
+      packages = with rPackages; [
+        BradleyTerry2
+        argparser
+      ];
+    })
+  ];
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -pv $out/bin/
+    cp -v resorter.r $out/bin/resorter
+
+    runHook postInstall
+  '';
+
+  meta = {
+    description = "Tool to sort a list of items based on pairwise comparisons";
+    homepage = "https://github.com/hiAndrewQuinn/resorter";
+    license = with lib.licenses; [ cc0 ];
+    mainProgram = "resorter";
+    maintainers = with lib.maintainers; [ AndersonTorres ];
+    platforms = lib.platforms.all;
+  };
+})