Files
nixpkgs/pkgs/by-name/re/resorter/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
934 B
Nix

{
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 = [ ];
platforms = lib.platforms.all;
};
})