From 6feea9dbc0f8aa62714c236f4e3b3ef6807f59c0 Mon Sep 17 00:00:00 2001 From: joygnu Date: Fri, 9 Aug 2024 00:06:08 +0200 Subject: [PATCH] First package ? --- modules/NoRiskClient/default.nix | 22 ++++++++++++++++++++++ modules/NoRiskClient/result | 1 + modules/packages/default.nix | 5 +++++ 3 files changed, 28 insertions(+) create mode 100644 modules/NoRiskClient/default.nix create mode 120000 modules/NoRiskClient/result diff --git a/modules/NoRiskClient/default.nix b/modules/NoRiskClient/default.nix new file mode 100644 index 0000000..3068c95 --- /dev/null +++ b/modules/NoRiskClient/default.nix @@ -0,0 +1,22 @@ +{ stdenv, lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { pname = "noriskclient-launcher"; version = "0.5.6"; + + src = fetchFromGitHub { + owner = "NoRiskClient"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-qyFuspRcBNyf8eBPlNc9hHMSrJ7G1vQwI0CJP9eFQKY="; + }; + + vendorHash = null; + + doCheck = false; + + meta = with lib; { + description = "No Risk Client"; + homepage = "https://github.com/github-owner/${pname}"; + license = licenses.gpl3; + platforms = platforms.unix; + }; +} diff --git a/modules/NoRiskClient/result b/modules/NoRiskClient/result new file mode 120000 index 0000000..8d3928f --- /dev/null +++ b/modules/NoRiskClient/result @@ -0,0 +1 @@ +/nix/store/sblh9mq6dwkd69h8hg4a8m0hvqc4hpx5-noriskclient-launcher-0.5.6 \ No newline at end of file diff --git a/modules/packages/default.nix b/modules/packages/default.nix index 10b7c21..d9e83ca 100644 --- a/modules/packages/default.nix +++ b/modules/packages/default.nix @@ -1,8 +1,13 @@ { pkgs, ... }: { + nixpkgs.config.packageOverrides = pkgs: { + noriskclient-launcher = pkgs.callPackage ./../NoRiskClient/default.nix { }; + }; + environment.systemPackages = with pkgs; [ #hackerman + noriskclient-launcher fastfetch cmatrix cava