Merge pull request #291453 from atorres1985-contrib/resorter

resorter: init at 0-unstable-2023-07-14
This commit is contained in:
Doron Behar 2024-06-12 23:32:18 +03:00 committed by GitHub
commit c870e19d09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
};
})