fix(pkgs): improve versioning
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
cf4cfa8b6a
commit
c91c8e703e
6 changed files with 62 additions and 48 deletions
|
@ -12,7 +12,6 @@
|
|||
|
||||
libratbag = pkgs.callPackage ./libratbag {
|
||||
inherit (inputs) libratbag-src;
|
||||
inherit mkVersion;
|
||||
};
|
||||
|
||||
pam-fprint-grosshack = pkgs.callPackage ./pam-fprint-grosshack {
|
||||
|
@ -21,7 +20,6 @@
|
|||
|
||||
piper = pkgs.callPackage ./piper {
|
||||
inherit (inputs) piper-src;
|
||||
inherit mkVersion;
|
||||
};
|
||||
|
||||
pokemon-colorscripts = pkgs.callPackage ./pokemon-colorscripts {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
gpu-screen-recorder-src,
|
||||
addOpenGLRunpath,
|
||||
dbus,
|
||||
ffmpeg,
|
||||
gpu-screen-recorder-src,
|
||||
lib,
|
||||
libdrm,
|
||||
libglvnd,
|
||||
libpulseaudio,
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
{
|
||||
libratbag,
|
||||
lib,
|
||||
libratbag-src,
|
||||
mkVersion,
|
||||
libratbag,
|
||||
...
|
||||
}:
|
||||
libratbag.overrideAttrs {
|
||||
pname = "libratbag";
|
||||
version = mkVersion libratbag-src;
|
||||
src = libratbag-src;
|
||||
}
|
||||
}: let
|
||||
inherit (lib) elemAt match readFile splitString;
|
||||
|
||||
releaseVer = elemAt (match "^([^']*).*" (elemAt (splitString "version : '" (readFile "${libratbag-src}/meson.build")) 1)) 0;
|
||||
in
|
||||
libratbag.overrideAttrs {
|
||||
pname = "libratbag";
|
||||
version = "${releaseVer}+${libratbag-src.shortRev}";
|
||||
src = libratbag-src;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
stdenv,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
pam-fprint-grosshack-src,
|
||||
dbus,
|
||||
glib,
|
||||
libfprint,
|
||||
polkit,
|
||||
dbus,
|
||||
systemd,
|
||||
pam,
|
||||
libpam-wrapper,
|
||||
pam-fprint-grosshack-src,
|
||||
meson,
|
||||
ninja,
|
||||
pam,
|
||||
pkg-config,
|
||||
polkit,
|
||||
stdenv,
|
||||
systemd,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) elemAt head readFile split;
|
||||
|
|
|
@ -1,15 +1,22 @@
|
|||
{
|
||||
mkVersion,
|
||||
piper,
|
||||
lib,
|
||||
piper-src,
|
||||
piper,
|
||||
...
|
||||
}:
|
||||
piper.overrideAttrs {
|
||||
pname = "piper";
|
||||
version = mkVersion piper-src;
|
||||
src = piper-src;
|
||||
}: let
|
||||
inherit (lib) elemAt match readFile splitString;
|
||||
|
||||
mesonFlags = [
|
||||
"-Druntime-dependency-checks=false"
|
||||
];
|
||||
}
|
||||
releaseVer = elemAt (match "^([^']*).*" (elemAt (splitString "version: '" (readFile "${piper-src}/meson.build")) 1)) 0;
|
||||
in
|
||||
piper.overrideAttrs rec {
|
||||
pname = "piper";
|
||||
version = "${releaseVer}+${piper-src.shortRev}";
|
||||
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = piper-src;
|
||||
|
||||
mesonFlags = [
|
||||
"-Druntime-dependency-checks=false"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,25 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
proton-ge-bin,
|
||||
rsync,
|
||||
...
|
||||
}:
|
||||
proton-ge-bin.overrideAttrs {
|
||||
buildInputs = [rsync];
|
||||
}: let
|
||||
inherit (lib) elemAt match replaceStrings;
|
||||
in
|
||||
proton-ge-bin.overrideAttrs (o: {
|
||||
version = replaceStrings ["-"] ["."] (elemAt (match "^[^0-9]*(.*)" o.version) 0);
|
||||
|
||||
buildCommand =
|
||||
# bash
|
||||
''
|
||||
runHook preBuild
|
||||
buildInputs = [rsync];
|
||||
|
||||
echo "Proton should not be installed into environments. Please use programs.steam.extraCompatPackages instead." > $out
|
||||
buildCommand =
|
||||
# bash
|
||||
''
|
||||
runHook preBuild
|
||||
|
||||
cat $src/compatibilitytool.vdf > ./compatibilitytool.vdf
|
||||
sed -i 's/"GE-Proton[^"]*"/"GE-Proton-Latest"/g' ./compatibilitytool.vdf
|
||||
echo "Proton should not be installed into environments. Please use programs.steam.extraCompatPackages instead." > $out
|
||||
|
||||
mkdir $steamcompattool
|
||||
cp -a ./compatibilitytool.vdf $steamcompattool/
|
||||
rsync -ar --exclude='compatibilitytool.vdf' $src/* $steamcompattool/
|
||||
cat $src/compatibilitytool.vdf > ./compatibilitytool.vdf
|
||||
sed -i 's/"GE-Proton[^"]*"/"GE-Proton-Latest"/g' ./compatibilitytool.vdf
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
}
|
||||
mkdir $steamcompattool
|
||||
cp -a ./compatibilitytool.vdf $steamcompattool/
|
||||
rsync -ar --exclude='compatibilitytool.vdf' $src/* $steamcompattool/
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue