github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/testdata/TestRunPipe/deps_build.nix.golden (about) 1 # This file was generated by GoReleaser. DO NOT EDIT. 2 # vim: set ft=nix ts=2 sw=2 sts=2 et sta 3 { 4 system ? builtins.currentSystem 5 , lib 6 , fetchurl 7 , installShellFiles 8 , stdenvNoCC 9 , fish 10 , bash 11 , ttyd 12 , chromium 13 , makeWrapper 14 }: 15 let 16 shaMap = { 17 i686-linux = "0000000000000000000000000000000000000000000000000000"; 18 x86_64-linux = "0000000000000000000000000000000000000000000000000000"; 19 armv6l-linux = "0000000000000000000000000000000000000000000000000000"; 20 armv7l-linux = "0000000000000000000000000000000000000000000000000000"; 21 aarch64-linux = "0000000000000000000000000000000000000000000000000000"; 22 x86_64-darwin = "0000000000000000000000000000000000000000000000000000"; 23 aarch64-darwin = "0000000000000000000000000000000000000000000000000000"; 24 }; 25 26 urlMap = { 27 i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.tar.gz"; 28 x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.tar.gz"; 29 armv6l-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm6.tar.gz"; 30 armv7l-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm7.tar.gz"; 31 aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.tar.gz"; 32 x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz"; 33 aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.tar.gz"; 34 }; 35 in 36 stdenvNoCC.mkDerivation { 37 pname = "foo"; 38 version = "1.2.1"; 39 src = fetchurl { 40 url = urlMap.${system}; 41 sha256 = shaMap.${system}; 42 }; 43 44 sourceRoot = "."; 45 46 nativeBuildInputs = [ installShellFiles makeWrapper ]; 47 48 installPhase = '' 49 mkdir -p $out/bin 50 cp -vr ./foo $out/bin/foo 51 wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath (lib.optionals stdenvNoCC.isDarwin [ chromium ] ++ lib.optionals stdenvNoCC.isLinux [ ttyd ] ++ [ fish bash ])} 52 ''; 53 54 system = system; 55 56 meta = { 57 58 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 59 60 platforms = [ 61 "aarch64-darwin" 62 "aarch64-linux" 63 "armv6l-linux" 64 "armv7l-linux" 65 "i686-linux" 66 "x86_64-darwin" 67 "x86_64-linux" 68 ]; 69 }; 70 }