Skip to content

Commit

Permalink
gcs: Write working package
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Mar 24, 2024
1 parent 47fbdc6 commit 3b1563d
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkgs/_sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,26 @@
},
"version": "v1.3.0"
},
"gcs": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "gcs",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "richardwilkes",
"repo": "gcs",
"rev": "v5.20.4",
"sha256": "sha256-aoU2wRz2XB6+3e6am/dLjRbcDmWTjtDtTBwc6c4n3DE=",
"type": "github"
},
"version": "v5.20.4"
},
"ohmyzsh": {
"cargoLocks": null,
"date": "2024-03-21",
Expand Down
11 changes: 11 additions & 0 deletions pkgs/_sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@
sha256 = "sha256-GU6HKha7Y01HJX6pyYHORUkFKgl9mWtDd65d+3pYxjI=";
};
};
gcs = {
pname = "gcs";
version = "v5.20.4";
src = fetchFromGitHub {
owner = "richardwilkes";
repo = "gcs";
rev = "v5.20.4";
fetchSubmodules = false;
sha256 = "sha256-aoU2wRz2XB6+3e6am/dLjRbcDmWTjtDtTBwc6c4n3DE=";
};
};
ohmyzsh = {
pname = "ohmyzsh";
version = "d157fc60c93fa59e757921b503e9594bd23b422c";
Expand Down
43 changes: 43 additions & 0 deletions pkgs/applications/gcs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
pkgs,
sources,
buildGoModule,
}:
buildGoModule {
inherit (sources.gcs) pname version src;

overrideModAttrs = _: {
postBuild = ''
sed 's/lmupdf_linux_amd64/lmupdf/' -i ./vendor/github.com/richardwilkes/pdf/pdf.go
'';
};

ldflags = [
"-X""github.com/richardwilkes/toolbox/cmdline.AppVersion=${sources.gcs.version}"
"-s"
"-w"
];

nativeBuildInputs = with pkgs; [
pkg-config
];

buildInputs = with pkgs; [
libGL
fontconfig
freetype
mupdf
# (mupdf.override {enableCxx = true;})

xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXinerama
xorg.libXi
xorg.libXxf86vm
];

vendorHash = "sha256-7uIS/Q+xwUYcdaqzXffZUUFWJ/WOGpYdDnNRHQ4UIaU=";
# vendorHash = pkgs.lib.fakeHash;
meta.mainProgram = "${sources.gcs.pname}";
}
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ in {
drivestrike = callPackage ./applications/drivestrike.nix {};
emacs = callPackage ./applications/emacs {};
gauth = callPackage ./applications/gauth.nix {};
gcs = callPackage ./applications/gcs.nix {};
stumpwm = callPackage ./applications/stumpwm {};
stumpwm-contrib = callPackage ./applications/stumpwm/stumpwm-contrib.nix {};
nextcloudcmd = callPackage ./applications/nextcloudcmd.nix {};
Expand Down
4 changes: 4 additions & 0 deletions pkgs/nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ fetch.github = "black7375/Firefox-UI-Fix"
src.github_tag = "pcarrier/gauth"
fetch.github = "pcarrier/gauth"

[gcs]
src.github = "richardwilkes/gcs"
fetch.github = "richardwilkes/gcs"

[ohmyzsh]
src.git = "https://github.com/ohmyzsh/ohmyzsh"
src.branch = "master"
Expand Down

0 comments on commit 3b1563d

Please sign in to comment.