bonzomatic: modernize
This commit is contained in:
@@ -10,18 +10,20 @@
|
||||
libXcursor,
|
||||
libXinerama,
|
||||
libXrandr,
|
||||
xorg,
|
||||
xinput,
|
||||
libXi,
|
||||
libXext,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bonzomatic";
|
||||
version = "2023-06-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Gargaj";
|
||||
repo = "bonzomatic";
|
||||
tag = version;
|
||||
sha256 = "sha256-hwK3C+p1hRwnuY2/vBrA0QsJGIcJatqq+U5/hzVCXEg=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-hwK3C+p1hRwnuY2/vBrA0QsJGIcJatqq+U5/hzVCXEg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -33,6 +35,7 @@ stdenv.mkDerivation rec {
|
||||
cmake
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
fontconfig
|
||||
@@ -40,13 +43,14 @@ stdenv.mkDerivation rec {
|
||||
libXcursor
|
||||
libXinerama
|
||||
libXrandr
|
||||
xorg.xinput
|
||||
xorg.libXi
|
||||
xorg.libXext
|
||||
xinput
|
||||
libXi
|
||||
libXext
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/bonzomatic --prefix LD_LIBRARY_PATH : "${alsa-lib}/lib"
|
||||
wrapProgram $out/bin/bonzomatic \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.getLib alsa-lib}/lib"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
@@ -60,4 +64,4 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
mainProgram = "bonzomatic";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user