Skip to content

Commit

Permalink
foo: v1.0.5 -> v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed May 29, 2023
1 parent c4a25fa commit 5a380d7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/test/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let
shaMap = {
x86_64-linux = "0mymdh2jx0sb01zbdyvncm6qcpix331dpw3lxp8vdgrl6pkvh7ib";
x86_64-darwin = "0hjcfrllazh5nn45w7h25833v2wfqgc59g3q13sn8n3d9nf7kz4a";
};

urlMap = {
x86_64-linux = "https://github.com/caarlos0-graveyard/test/releases/download/v1.0.6/foo_1.0.6_linux_amd64.tar.gz";
x86_64-darwin = "https://github.com/caarlos0-graveyard/test/releases/download/v1.0.6/foo_1.0.6_darwin_amd64.tar.gz";
};
in pkgs.stdenv.mkDerivation {
pname = "test";
version = "1.0.6";
src = fetchurl {
url = urlMap.${system};
sha256 = shaMap.${system};
};

sourceRoot = ".";

nativeBuildInputs = [ installShellFiles ];

installPhase = ''
mkdir -p $out/bin
cp -vr ./moises $out/bin/moises
'';

system = system;

meta = with lib; {
description = "a test";
homepage = "https://test";
license = licenses.mit;

platforms = [
"x86_64-darwin"
"x86_64-linux"
];
};
}

0 comments on commit 5a380d7

Please sign in to comment.