diff options
author | Florian Klink <flokli@flokli.de> | 2021-01-11 01:14:34 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2021-01-12 15:28:24 +0100 |
commit | 8c1d575ce479dea79eeefd804825d6884b16ba5c (patch) | |
tree | dc6d881f9b97dca233f4bc38988e98fff0043998 /pkgs/development/libraries/lensfun | |
parent | 124bb278229f7d1997a24e15fb2dd977b21e6cc1 (diff) |
lensfun: fetchFromGitHub, s/pkgconfig/pkg-config/
Diffstat (limited to 'pkgs/development/libraries/lensfun')
-rw-r--r-- | pkgs/development/libraries/lensfun/default.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/development/libraries/lensfun/default.nix b/pkgs/development/libraries/lensfun/default.nix index 24983d5ce6eef..b39f281c1bf03 100644 --- a/pkgs/development/libraries/lensfun/default.nix +++ b/pkgs/development/libraries/lensfun/default.nix @@ -1,15 +1,20 @@ -{ stdenv, fetchurl, pkgconfig, glib, zlib, libpng, cmake }: +{ stdenv, fetchFromGitHub, pkg-config, glib, zlib, libpng, cmake }: -stdenv.mkDerivation rec { +let version = "0.3.95"; pname = "lensfun"; +in +stdenv.mkDerivation { + inherit pname version; - src = fetchurl { - url = "mirror://sourceforge/lensfun/${version}/${pname}-${version}.tar.gz"; - sha256 = "0218f3xrlln0jmh4gcf1zbpvi2bidgl3b2mblf6c810n7j1rrhl2"; + src = fetchFromGitHub { + owner = "lensfun"; + repo = "lensfun"; + rev = "v${version}"; + sha256 = "0isli0arns8bmxqpbr1jnbnqh5wvspixdi51adm671f9ngng7x5r"; }; - nativeBuildInputs = [ cmake pkgconfig ]; + nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ glib zlib libpng ]; configureFlags = [ "-v" ]; |