From 7fec0a28bbcfe51e4c3809748ff11b743e19fa6f Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 10 Jun 2023 00:22:08 +0200 Subject: [PATCH] vpk_fuse: init package --- pkgs/apps/vpk_fuse.nix | 28 ++++++++++++++++++++++++++++ pkgs/default.nix | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/apps/vpk_fuse.nix diff --git a/pkgs/apps/vpk_fuse.nix b/pkgs/apps/vpk_fuse.nix new file mode 100644 index 0000000..7685df0 --- /dev/null +++ b/pkgs/apps/vpk_fuse.nix @@ -0,0 +1,28 @@ +{ pkgs, lib, stdenv, fetchFromGitHub, fuse, pkg-config }: + + +stdenv.mkDerivation rec { + pname = "vpk_fuse"; + version = "15042023"; + src = fetchFromGitHub { + owner = "ElementW"; + repo = "vpk_fuse"; + rev = "4e7e4b78d73f9e09287079d3e62f53cbc5d04a37"; + sha256 = "sha256-HoENTIHM4Nmocoh2bxxuk1ZLsq4bSUGzeKgEufsPUJA="; + }; + + + buildInputs = [ fuse pkg-config]; + + installPhase = '' + mkdir -p $out/bin + install -m 755 -D vpk_fuse $out/bin/vpk_fuse + ''; + + meta = with lib; { + description = "A FUSE filesystem which can open Valve PacKage files (VPK)."; + homepage = "https://xmake.io"; + license = licenses.gpl3; + platforms = platforms.linux; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 95b48c3..3bda9b8 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -19,6 +19,9 @@ rec { polymc = pkgs.qt6Packages.callPackage ./apps/games/polymc {}; + vpk_fuse = callPackage ./apps/vpk_fuse.nix {}; + xmake = callPackage ./dev/xmake {}; + }