diff options
author | Felix Buehler <account@buehler.rocks> | 2021-11-01 16:06:11 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-11-12 00:13:06 +0100 |
commit | 3124df04137894a2fdbdb5e003d4cf8fda59433a (patch) | |
tree | f801df52a6e8ed4ccedde5a5291349659986bdc0 | |
parent | 3149762bbfb19085b9a8d053dfc03019ae9d9467 (diff) |
luabind: switch to fetchFromGitHub
-rw-r--r-- | pkgs/development/libraries/luabind/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/libraries/luabind/default.nix b/pkgs/development/libraries/luabind/default.nix index d7aed656fdb9c..b36e6f34c8262 100644 --- a/pkgs/development/libraries/luabind/default.nix +++ b/pkgs/development/libraries/luabind/default.nix @@ -1,11 +1,14 @@ -{lib, stdenv, fetchurl, boost-build, lua, boost}: +{ lib, stdenv, fetchFromGitHub, boost-build, lua, boost }: -stdenv.mkDerivation { - name = "luabind-0.9.1"; +stdenv.mkDerivation rec { + pname = "luabind"; + version = "0.9.1"; - src = fetchurl { - url = "https://github.com/luabind/luabind/archive/v0.9.1.tar.gz"; - sha256 = "0e5ead50a07668d29888f2fa6f53220f900c886e46a2c99c7e8656842f05ff2d"; + src = fetchFromGitHub { + owner = "luabind"; + repo = "luabind"; + rev = "v${version}"; + sha256 = "sha256-sK1ca2Oj9yXdmxyXeDO3k8YZ1g+HxIXLhvdTWdPDdag="; }; patches = [ ./0.9.1_modern_boost_fix.patch ./0.9.1_boost_1.57_fix.patch ./0.9.1_discover_luajit.patch ]; |