2023-08-02 20:42:35 -03:00
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
|
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
|
|
|
{
|
|
|
|
system ? builtins.currentSystem
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, installShellFiles
|
2024-01-15 08:55:21 -03:00
|
|
|
, stdenvNoCC
|
2023-08-02 20:42:35 -03:00
|
|
|
, git
|
2024-01-27 09:12:55 -03:00
|
|
|
, makeWrapper
|
2023-08-02 20:42:35 -03:00
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
shaMap = {
|
|
|
|
i686-linux = "sha15";
|
|
|
|
x86_64-linux = "sha8";
|
|
|
|
aarch64-linux = "sha9";
|
|
|
|
x86_64-darwin = "sha10";
|
|
|
|
aarch64-darwin = "sha11";
|
|
|
|
};
|
|
|
|
|
|
|
|
urlMap = {
|
|
|
|
i686-linux = "https://dummyhost/download/v1.2.1/foo_linux_386.zip";
|
|
|
|
x86_64-linux = "https://dummyhost/download/v1.2.1/foo_linux_amd64v1.zip";
|
|
|
|
aarch64-linux = "https://dummyhost/download/v1.2.1/foo_linux_arm64.zip";
|
|
|
|
x86_64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_amd64v1.zip";
|
|
|
|
aarch64-darwin = "https://dummyhost/download/v1.2.1/foo_darwin_arm64.zip";
|
|
|
|
};
|
|
|
|
in
|
2024-01-27 09:01:00 -03:00
|
|
|
stdenvNoCC.mkDerivation {
|
2023-08-02 20:42:35 -03:00
|
|
|
pname = "foozip";
|
|
|
|
version = "1.2.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = urlMap.${system};
|
|
|
|
sha256 = shaMap.${system};
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper unzip ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -vr ./foo $out/bin/foo
|
|
|
|
wrapProgram $out/bin/foo --prefix PATH : ${lib.makeBinPath ([ git ])}
|
|
|
|
'';
|
|
|
|
|
|
|
|
system = system;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "my test";
|
|
|
|
homepage = "https://goreleaser.com";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
|
2023-10-30 15:50:27 +01:00
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
|
|
|
2023-08-02 20:42:35 -03:00
|
|
|
platforms = [
|
|
|
|
"aarch64-darwin"
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|