nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 63 lines 1.3 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 buildFHSEnv, 5 callPackage, 6 fetchurl, 7}: 8let 9 sources = builtins.fromJSON (builtins.readFile ./sources.json); 10 11 src = 12 fetchurl 13 sources.sources.${stdenvNoCC.hostPlatform.system} 14 or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}"); 15 version = sources.version; 16 17 meta = { 18 description = "Atlassian Command Line Interface"; 19 homepage = "https://developer.atlassian.com/cloud/acli/guides/introduction"; 20 maintainers = with lib.maintainers; [ moraxyc ]; 21 platforms = lib.attrNames sources.sources; 22 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 23 license = lib.licenses.unfree; 24 mainProgram = "acli"; 25 }; 26 27 updateScript = ./update.py; 28 29 unwrapped = callPackage ./unwrapped.nix { 30 inherit 31 src 32 version 33 meta 34 updateScript 35 ; 36 }; 37 wrapped = buildFHSEnv { 38 pname = "acli"; 39 inherit version; 40 41 targetPkgs = 42 p: with p; [ 43 unwrapped 44 45 cacert 46 openssl 47 48 # For rovodev 49 zlib 50 libffi 51 sqlite 52 ]; 53 54 runScript = "acli"; 55 56 passthru = { 57 inherit unwrapped updateScript; 58 }; 59 60 inherit meta; 61 }; 62in 63if stdenvNoCC.hostPlatform.isLinux then wrapped else unwrapped.override { pname = "acli"; }