mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
lrzip: refactor derivation
- Fetch from GitHub - Set nativeBuildInputs
This commit is contained in:
parent
8ac9859d73
commit
b663e1b4d3
@ -1,15 +1,19 @@
|
||||
{ lib, stdenv, fetchurl, zlib, lzo, bzip2, lz4, nasm, perl }:
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib, lzo, bzip2, lz4, nasm, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lrzip";
|
||||
version = "0.641";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ck.kolivas.org/apps/lrzip/${pname}-${version}.tar.xz";
|
||||
sha256 = "0ziyanspd96dc3lp2qdcylc7aq8dhb511jhqrhxvlp502fjqjqrc";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ckolivas";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-253CH6TiHWyr13C76y9PXjyB7gj2Bhd2VRgJ5r+cm/g=";
|
||||
};
|
||||
|
||||
buildInputs = [ zlib lzo bzip2 lz4 nasm perl ];
|
||||
nativeBuildInputs = [ autoreconfHook nasm perl ];
|
||||
|
||||
buildInputs = [ zlib lzo bzip2 lz4 ];
|
||||
|
||||
configureFlags = [
|
||||
"--disable-asm"
|
||||
|
Loading…
Reference in New Issue
Block a user