github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/nix/testdata/TestRunPipe/partial_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      x86_64-linux = "0000000000000000000000000000000000000000000000000000";
    13      x86_64-darwin = "0000000000000000000000000000000000000000000000000000";
    14    };
    15  
    16    urlMap = {
    17      x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.tar.gz";
    18      x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.tar.gz";
    19    };
    20  in
    21  stdenvNoCC.mkDerivation {
    22    pname = "partial";
    23    version = "1.2.1";
    24    src = fetchurl {
    25      url = urlMap.${system};
    26      sha256 = shaMap.${system};
    27    };
    28  
    29    sourceRoot = ".";
    30  
    31    nativeBuildInputs = [ installShellFiles ];
    32  
    33    installPhase = ''
    34      mkdir -p $out/bin
    35      cp -vr ./foo $out/bin/foo
    36    '';
    37  
    38    system = system;
    39  
    40    meta = {
    41  
    42      sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
    43  
    44      platforms = [
    45        "x86_64-darwin"
    46        "x86_64-linux"
    47      ];
    48    };
    49  }