summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-21 13:36:12 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-21 13:36:40 +0200
commiteaf2c4a2dda0ff1a86f4c6074d839cf763880180 (patch)
tree41869c92b45277294b49fa980bae5c75f299edb5
parent0a97ad68276544f9be5e0f79d79c7e515d740421 (diff)
downloadnixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.tar
nixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.tar.gz
nixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.tar.bz2
nixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.tar.lz
nixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.tar.xz
nixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.tar.zst
nixpkgs-eaf2c4a2dda0ff1a86f4c6074d839cf763880180.zip
bsc: cleanup
-rw-r--r--pkgs/tools/compression/bsc/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/tools/compression/bsc/default.nix b/pkgs/tools/compression/bsc/default.nix
index ac0c0544f01..93b715f853c 100644
--- a/pkgs/tools/compression/bsc/default.nix
+++ b/pkgs/tools/compression/bsc/default.nix
@@ -1,30 +1,31 @@
-{ lib, stdenv, fetchurl, openmp ? null }:
+{ lib, stdenv, fetchFromGitHub, openmp }:
 
 stdenv.mkDerivation rec {
   pname = "bsc";
   version = "3.1.0";
 
-  src = fetchurl {
-    url = "https://github.com/IlyaGrebnov/libbsc/archive/${version}.tar.gz";
-    sha256 = "01yhizaf6qjv1plyrx0fcib264maa5qwvgfvvid9rzlzj9fxjib6";
+  src = fetchFromGitHub {
+    owner = "IlyaGrebnov";
+    repo = "libbsc";
+    rev = version;
+    sha256 = "0c0jmirh9y23kyi1jnrm13sa3xsjn54jazfr84ag45pai279fciz";
   };
 
   enableParallelBuilding = true;
 
   buildInputs = lib.optional stdenv.isDarwin openmp;
 
-  prePatch = ''
+  postPatch = ''
     substituteInPlace makefile \
         --replace 'g++' '$(CXX)'
   '';
 
-  preInstall = ''
-    makeFlagsArray+=("PREFIX=$out")
-  '';
+  makeFlags = [ "PREFIX=$(out)" ];
 
   meta = with lib; {
     description = "High performance block-sorting data compression library";
     homepage = "http://libbsc.com/";
+    maintainers = with maintainers; [ ];
     # Later commits changed the licence to Apache2 (no release yet, though)
     license = with licenses; [ lgpl3Plus ];
     platforms = platforms.unix;