lol

akku: init at 1.1.0

+61
+41
pkgs/tools/package-management/akku/default.nix
··· 1 + { lib, stdenv, fetchFromGitLab, autoreconfHook, pkg-config, guile, curl, substituteAll }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "akku"; 5 + version = "1.1.0"; 6 + 7 + src = fetchFromGitLab { 8 + owner = "akkuscm"; 9 + repo = "akku"; 10 + rev = "v${version}"; 11 + sha256 = "1pi18aamg1fd6f9ynfl7zx92052xzf0zwmhi2pwcwjs1kbah19f5"; 12 + }; 13 + 14 + patches = [ 15 + # substitute libcurl path 16 + (substituteAll { 17 + src = ./hardcode-libcurl.patch; 18 + libcurl = "${curl.out}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary}"; 19 + }) 20 + ]; 21 + 22 + nativeBuildInputs = [ autoreconfHook pkg-config ]; 23 + 24 + buildInputs = [ guile ]; 25 + 26 + # Use a dummy package index to boostrap Akku 27 + preBuild = '' 28 + touch bootstrap.db 29 + ''; 30 + 31 + makeFlags = [ "GUILE_AUTO_COMPILE=0" ]; 32 + 33 + meta = with lib; { 34 + homepage = "https://akkuscm.org/"; 35 + description = "Language package manager for Scheme"; 36 + changelog = "https://gitlab.com/akkuscm/akku/-/raw/v${version}/NEWS.md"; 37 + platforms = platforms.all; 38 + license = licenses.gpl3Plus; 39 + maintainers = with maintainers; [ marsam ]; 40 + }; 41 + }
+18
pkgs/tools/package-management/akku/hardcode-libcurl.patch
··· 1 + --- old/private/http.scm 2 + +++ new/private/http.scm 3 + @@ -101,14 +101,7 @@ 4 + ;; shouldn't, but it's an old issue. 5 + (log/error "Could not load libcurl. Please install the curl development(!) package.") 6 + (exit 1))) 7 + - (case (os-name) 8 + - ((darwin) (set! libcurl (open-shared-object "libcurl.dylib"))) 9 + - ((msys) (set! libcurl (open-shared-object "msys-curl-4"))) 10 + - (else 11 + - (guard (exn 12 + - (else 13 + - (set! libcurl (open-shared-object "libcurl.so.3")))) 14 + - (set! libcurl (open-shared-object "libcurl.so.4")))))) 15 + + (set! libcurl (open-shared-object "@libcurl@"))) 16 + (letrec () 17 + (define %curl_global_init (foreign-procedure libcurl int curl_global_init (long))) 18 + (call %curl_global_init #b11)))
+2
pkgs/top-level/all-packages.nix
··· 865 865 inherit (plasma5Packages) kdialog; 866 866 }; 867 867 868 + akku = callPackage ../tools/package-management/akku { }; 869 + 868 870 albert = libsForQt5.callPackage ../applications/misc/albert {}; 869 871 870 872 arch-install-scripts = callPackage ../tools/misc/arch-install-scripts {};