about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorMorgan Jones <me@numin.it>2023-09-19 23:52:25 -0700
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-09-20 23:57:22 +0200
commit15eb417c0a2794654cdb39041804a0347120c159 (patch)
tree1c8f277cfd5759b8960232391815fcf4c595ac52 /pkgs/by-name
parent2fbe8a5f0569209b36d56116bdb6ba44391bea86 (diff)
binsort: init at 0.4-1
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/bi/binsort/package.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/bi/binsort/package.nix b/pkgs/by-name/bi/binsort/package.nix
new file mode 100644
index 0000000000000..edb41c6422685
--- /dev/null
+++ b/pkgs/by-name/bi/binsort/package.nix
@@ -0,0 +1,35 @@
+{ lib
+, stdenv
+, fetchurl
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "binsort";
+  version = "0.4-1";
+
+  src = fetchurl {
+    url = "http://neoscientists.org/~tmueller/binsort/download/binsort-${finalAttrs.version}.tar.gz";
+    hash = "sha256-l9T0LlDslxCgZYf8NrbsRly7bREOTGwptLteeg3TNRg=";
+  };
+
+  makeFlags = [
+    "CC=${stdenv.cc.targetPrefix}cc"
+  ];
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/bin
+    cp binsort $out/bin/
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Sort files by binary similarity";
+    homepage = "http://neoscientists.org/~tmueller/binsort/";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ numinit ];
+    platforms = platforms.unix;
+  };
+})