dwmblocks derivation
This commit is contained in:
parent
326d8fbae7
commit
18448d340a
|
@ -0,0 +1,33 @@
|
|||
{ pkgs ? import <nixpkgs> { }
|
||||
, fetchFromGitea ? pkgs.fetchFromGitea
|
||||
#, stdenv ? pkgs.stdenv
|
||||
#, pkg-config ? pkgs.pkg-config
|
||||
#, fontconfig ? pkgs.fontconfig
|
||||
#, freetype ? pkgs.freetype
|
||||
#, libX11 ? pkgs.xorg.libX11
|
||||
#, libXft ? pkgs.xorg.libXft
|
||||
#, ncurses ? pkgs.ncurses
|
||||
#, extraLibs ? [ ]
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "dwmblocks";
|
||||
name = "dwmblocks";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.bitlab21.com";
|
||||
owner = "sam";
|
||||
repo = "dwmblocks";
|
||||
rev = "c4e7a9b1eb98123e239ba76bc551934721fd18ca";
|
||||
sha256 = "sha256-4W9w/Efk+YCSP1VuUFr+jPXIyrlpktwxRPUOZHTAtx8=";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/usr/local/bin
|
||||
mv st $out/usr/local/bin
|
||||
'';
|
||||
|
||||
}
|
|
@ -1,13 +1,8 @@
|
|||
{ pkgs ? import <nixpkgs> { }
|
||||
, fetchFromGitea ? pkgs.fetchFromGitea
|
||||
, stdenv ? pkgs.stdenv
|
||||
, pkg-config ? pkgs.pkg-config
|
||||
, fontconfig ? pkgs.fontconfig
|
||||
, freetype ? pkgs.freetype
|
||||
, libX11 ? pkgs.xorg.libX11
|
||||
, libXft ? pkgs.xorg.libXft
|
||||
, ncurses ? pkgs.ncurses
|
||||
, extraLibs ? [ ]
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "st";
|
||||
|
@ -21,23 +16,14 @@ pkgs.stdenv.mkDerivation {
|
|||
sha256 = "sha256-4W9w/Efk+YCSP1VuUFr+jPXIyrlpktwxRPUOZHTAtx8=";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
ncurses
|
||||
fontconfig
|
||||
freetype
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXft
|
||||
] ++ extraLibs;
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
|
|
Loading…
Reference in New Issue