Skip to content

Commit

Permalink
nfpm: v2.35.0 -> v2.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed Dec 26, 2023
1 parent 04dacd1 commit 846dae9
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions pkgs/nfpm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{
system ? builtins.currentSystem
, pkgs
, lib
, fetchurl
, installShellFiles
}:
let
shaMap = {
x86_64-linux = "12im2g1kclw3a3pvzrdj28029sg46l5pqn9814j24d0l8c9055pc";
aarch64-linux = "1my9kyc7kb8wrwf7pk504crwhvb267y0inb59lvbzcmc3vckgm4p";
x86_64-darwin = "1py5aig2fihm4y5k3wq84llnph0sh671bjbik8vwspx2i308phxd";
aarch64-darwin = "0bb69zk5wdkgg9y55zvbpl63887vy2p4zf4ab15wcgy1msblhv63";
};

urlMap = {
x86_64-linux = "https://github.com/goreleaser/nfpm/releases/download/v2.35.1/nfpm_2.35.1_Linux_x86_64.tar.gz";
aarch64-linux = "https://github.com/goreleaser/nfpm/releases/download/v2.35.1/nfpm_2.35.1_Linux_arm64.tar.gz";
x86_64-darwin = "https://github.com/goreleaser/nfpm/releases/download/v2.35.1/nfpm_2.35.1_Darwin_x86_64.tar.gz";
aarch64-darwin = "https://github.com/goreleaser/nfpm/releases/download/v2.35.1/nfpm_2.35.1_Darwin_arm64.tar.gz";
};
in
pkgs.stdenv.mkDerivation {
pname = "nfpm";
version = "2.35.1";
src = fetchurl {
url = urlMap.${system};
sha256 = shaMap.${system};
};

sourceRoot = ".";

nativeBuildInputs = [ installShellFiles ];

installPhase = ''
mkdir -p $out/bin
cp -vr ./nfpm $out/bin/nfpm
installManPage ./manpages/nfpm.1.gz
installShellCompletion ./completions/*
'';

system = system;

meta = {
description = "nFPM is a simple, 0-dependencies, deb, rpm and apk packager.";
homepage = "https://nfpm.goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

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

0 comments on commit 846dae9

Please sign in to comment.