mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 04:27:27 +03:00
gcs: 5.20.4 -> 5.21.0
This commit is contained in:
parent
fe516ada1d
commit
4903f64bcd
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
|
buildNpmPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
moreutils,
|
|
||||||
libGL,
|
libGL,
|
||||||
libX11,
|
libX11,
|
||||||
libXcursor,
|
libXcursor,
|
||||||
@ -16,18 +16,17 @@
|
|||||||
freetype,
|
freetype,
|
||||||
stdenv,
|
stdenv,
|
||||||
darwin,
|
darwin,
|
||||||
nix-update-script,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gcs";
|
pname = "gcs";
|
||||||
version = "5.20.4";
|
version = "5.21.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "richardwilkes";
|
owner = "richardwilkes";
|
||||||
repo = "gcs";
|
repo = "gcs";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-aoU2wRz2XB6+3e6am/dLjRbcDmWTjtDtTBwc6c4n3DE=";
|
hash = "sha256-mes1aXh4R1re4sW3xYDWtSIcW7lwkWoAxbcbdyT/W+o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
modPostBuild = ''
|
modPostBuild = ''
|
||||||
@ -35,12 +34,29 @@ buildGoModule rec {
|
|||||||
sed -i 's|-lmupdf[^ ]* |-lmupdf |g' vendor/github.com/richardwilkes/pdf/pdf.go
|
sed -i 's|-lmupdf[^ ]* |-lmupdf |g' vendor/github.com/richardwilkes/pdf/pdf.go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vendorHash = "sha256-ee6qvwnUXtsBcovPOORfVpdndICtIUYe4GrP52V/P3k=";
|
vendorHash = "sha256-H5GCrrqmDwpCneXawu7kZsRfrQ8hcsbqhpAAG6FCawg=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
frontend = buildNpmPackage {
|
||||||
pkg-config
|
name = "${pname}-${version}-frontend";
|
||||||
moreutils
|
|
||||||
];
|
inherit src;
|
||||||
|
sourceRoot = "${src.name}/server/frontend";
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-wP6sjdcjljzmTs0GUMbF2BPo83LKpfdn15sUuMEIn6E=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r dist $out/dist
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
cp -r ${frontend}/dist server/frontend/dist
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[
|
[
|
||||||
@ -75,8 +91,6 @@ buildGoModule rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/richardwilkes/gcs/releases/tag/${src.rev}";
|
changelog = "https://github.com/richardwilkes/gcs/releases/tag/${src.rev}";
|
||||||
description = "A stand-alone, interactive, character sheet editor for the GURPS 4th Edition roleplaying game system";
|
description = "A stand-alone, interactive, character sheet editor for the GURPS 4th Edition roleplaying game system";
|
||||||
|
Loading…
Reference in New Issue
Block a user