github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/testdata/TestRunPipe/unibin-replaces_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  }:
    10  let
    11    shaMap = {
    12      i686-linux = "0000000000000000000000000000000000000000000000000000";
    13      x86_64-linux = "0000000000000000000000000000000000000000000000000000";
    14      aarch64-linux = "0000000000000000000000000000000000000000000000000000";
    15      x86_64-darwin = "0000000000000000000000000000000000000000000000000000";
    16      aarch64-darwin = "0000000000000000000000000000000000000000000000000000";
    17    };
    18  
    19    urlMap = {
    20      i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.tar.gz";
    21      x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.tar.gz";
    22      aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.tar.gz";
    23      x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_all.tar.gz";
    24      aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_all.tar.gz";
    25    };
    26  in
    27  stdenvNoCC.mkDerivation {
    28    pname = "unibin-replaces";
    29    version = "1.2.1";
    30    src = fetchurl {
    31      url = urlMap.${system};
    32      sha256 = shaMap.${system};
    33    };
    34  
    35    sourceRoot = ".";
    36  
    37    nativeBuildInputs = [ installShellFiles ];
    38  
    39    installPhase = ''
    40      mkdir -p $out/bin
    41      cp -vr ./foo $out/bin/foo
    42    '';
    43  
    44    system = system;
    45  
    46    meta = {
    47      description = "my test";
    48      homepage = "https://goreleaser.com";
    49      license = lib.licenses.mit;
    50  
    51      sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
    52  
    53      platforms = [
    54        "aarch64-darwin"
    55        "aarch64-linux"
    56        "i686-linux"
    57        "x86_64-darwin"
    58        "x86_64-linux"
    59      ];
    60    };
    61  }