Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Initial Commit for waybar-bluetooth_battery_parse
Browse files Browse the repository at this point in the history
  • Loading branch information
DataEraserC committed Oct 14, 2023
1 parent 9b143be commit 6092cf4
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# When you use pkgs.callPackage, parameters here will be filled with packages from Nixpkgs (if there's a match)
{ stdenv, fetchFromGitHub, cmake, gcc }@args:
let
# Download source code from GitHub
src = fetchFromGitHub ({
owner = "Program-Learning";
repo = "waybar-bluetooth_battery_parse";
# Commit or tag, note that fetchFromGitHub cannot follow a branch!
rev = "96209641f510ac06f157f5493893ba55ef2a4dc7";
rev = "e95e3f6d6e2a304ce5233e2471c5181ff05d3877";
# Download git submodules, most packages don't need this
fetchSubmodules = false;
# Don't know how to calculate the SHA256 here? Comment it out and build the package
Expand All @@ -16,23 +17,17 @@ in stdenv.mkDerivation rec {
# Specify package name and version
pname = "waybar-bluetooth_battery_parse";
version = "0.0.2";
src = src;
buildInputs = [ cmake ];

# Download source code from GitHub
inherit src;
buildInputs = [ cmake gcc ];

# Parallel building, drastically speeds up packaging, enabled by default.
# You only want to turn this off for one of the rare packages that fails with this.
enableParallelBuilding = true;
# If you encounter some weird error when packaging CMake-based software, try enabling this
# This disables some automatic fixes applied to CMake-based software
dontFixCmake = true;
dontFixCmake = false;

# Add CMake to the building environment, to generate Makefile with it
nativeBuildInputs = [ cmake ];

# Arguments to CMake that controls functionalities of liboqs
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out" ];

nativeBuildInputs = [ cmake gcc ];
# stdenv.mkDerivation automatically does the rest for you
}

0 comments on commit 6092cf4

Please sign in to comment.