feat(pam-grosshack): use latest release instead of latest git
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
f12e7f2513
commit
e7e04fa569
6 changed files with 52 additions and 48 deletions
|
@ -67,6 +67,10 @@ const main = async() => {
|
||||||
console.log(await updateNodeModules());
|
console.log(await updateNodeModules());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args['p'] || args['pam-fprint-grosshack']) {
|
||||||
|
console.log(runNixUpdate('pam-fprint-grosshack'));
|
||||||
|
}
|
||||||
|
|
||||||
if (args['s'] || args['some-sass-language-server']) {
|
if (args['s'] || args['some-sass-language-server']) {
|
||||||
console.log(updateCustomPackage('some-sass-language-server'));
|
console.log(updateCustomPackage('some-sass-language-server'));
|
||||||
}
|
}
|
||||||
|
@ -129,6 +133,7 @@ const main = async() => {
|
||||||
|
|
||||||
updatePackage('homepage');
|
updatePackage('homepage');
|
||||||
updatePackage('jmusicbot');
|
updatePackage('jmusicbot');
|
||||||
|
updatePackage('pam-fprint-grosshack');
|
||||||
|
|
||||||
|
|
||||||
spawnSync('nixFastBuild', [], {
|
spawnSync('nixFastBuild', [], {
|
||||||
|
|
17
flake.lock
generated
17
flake.lock
generated
|
@ -1517,22 +1517,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pam-fprint-grosshack-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1658952526,
|
|
||||||
"narHash": "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=",
|
|
||||||
"owner": "mishakmak",
|
|
||||||
"repo": "pam-fprint-grosshack",
|
|
||||||
"rev": "45b42524fb5783e1e555067743d7e0f70d27888a",
|
|
||||||
"type": "gitlab"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "mishakmak",
|
|
||||||
"repo": "pam-fprint-grosshack",
|
|
||||||
"type": "gitlab"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pcsd": {
|
"pcsd": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -1736,7 +1720,6 @@
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"nurl": "nurl",
|
"nurl": "nurl",
|
||||||
"nvim-theme-src": "nvim-theme-src",
|
"nvim-theme-src": "nvim-theme-src",
|
||||||
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
|
|
||||||
"pcsd": "pcsd",
|
"pcsd": "pcsd",
|
||||||
"piper-src": "piper-src",
|
"piper-src": "piper-src",
|
||||||
"poetry2nix": "poetry2nix",
|
"poetry2nix": "poetry2nix",
|
||||||
|
|
|
@ -381,12 +381,6 @@
|
||||||
repo = "dracula.nvim";
|
repo = "dracula.nvim";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
pam-fprint-grosshack-src = {
|
|
||||||
flake = false;
|
|
||||||
owner = "mishakmak";
|
|
||||||
repo = "pam-fprint-grosshack";
|
|
||||||
type = "gitlab";
|
|
||||||
};
|
|
||||||
pcsd = {
|
pcsd = {
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -340,11 +340,6 @@ let
|
||||||
owner = "rogs";
|
owner = "rogs";
|
||||||
repo = "subscleaner";
|
repo = "subscleaner";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
type = "gitlab";
|
|
||||||
owner = "mishakmak";
|
|
||||||
repo = "pam-fprint-grosshack";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
type = "gitlab";
|
type = "gitlab";
|
||||||
owner = "phoneybadger";
|
owner = "phoneybadger";
|
||||||
|
|
|
@ -2,43 +2,68 @@
|
||||||
# nix build inputs
|
# nix build inputs
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
pam-fprint-grosshack-src,
|
fetchFromGitLab,
|
||||||
# deps
|
# deps
|
||||||
dbus,
|
dbus,
|
||||||
glib,
|
glib,
|
||||||
libfprint,
|
libfprint,
|
||||||
libpam-wrapper,
|
libpam-wrapper,
|
||||||
|
libxml2,
|
||||||
|
libxslt,
|
||||||
meson,
|
meson,
|
||||||
ninja,
|
ninja,
|
||||||
pam,
|
pam,
|
||||||
|
perl,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
polkit,
|
polkit,
|
||||||
|
python3Packages,
|
||||||
systemd,
|
systemd,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) elemAt head readFile split;
|
pname = "pam-fprint-grosshack";
|
||||||
tag = head (split "'" (elemAt (split " version: '" (readFile "${pam-fprint-grosshack-src}/meson.build")) 2));
|
version = "0.3.0";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "pam-fprint-grosshack";
|
inherit pname version;
|
||||||
version = "${tag}+${pam-fprint-grosshack-src.shortRev}";
|
|
||||||
|
|
||||||
src = pam-fprint-grosshack-src;
|
src = fetchFromGitLab {
|
||||||
|
owner = "mishakmak";
|
||||||
|
repo = "pam-fprint-grosshack";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Tests aren't actually ran for some reason so I get rid of the warning
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ./meson.build --replace-fail \
|
||||||
|
"'gi.repository.FPrint': true," "'gi.repository.FPrint': false,"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
dbus
|
||||||
ninja
|
|
||||||
pkg-config
|
|
||||||
glib
|
glib
|
||||||
libfprint
|
libfprint
|
||||||
polkit
|
|
||||||
dbus
|
|
||||||
systemd
|
|
||||||
pam
|
|
||||||
libpam-wrapper
|
libpam-wrapper
|
||||||
|
libxml2
|
||||||
|
libxslt
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pam
|
||||||
|
perl
|
||||||
|
pkg-config
|
||||||
|
polkit
|
||||||
|
systemd
|
||||||
|
|
||||||
|
python3Packages.python
|
||||||
|
python3Packages.dbus-python
|
||||||
|
python3Packages.pydbus
|
||||||
|
python3Packages.pypamtest
|
||||||
|
python3Packages.python-dbusmock
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
|
"-Dgtk_doc=true"
|
||||||
|
"-Dman=true"
|
||||||
"-Dpam_modules_dir=${placeholder "out"}/lib/security"
|
"-Dpam_modules_dir=${placeholder "out"}/lib/security"
|
||||||
"-Dsysconfdir=${placeholder "out"}/etc"
|
"-Dsysconfdir=${placeholder "out"}/etc"
|
||||||
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
|
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
|
||||||
|
|
|
@ -30,11 +30,13 @@ in
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = o.meta // {
|
meta =
|
||||||
description = ''
|
o.meta
|
||||||
${o.meta.description}
|
// {
|
||||||
This derivation overrides the Proton version in Steam so that games using the Proton
|
description = ''
|
||||||
from nix keep using it after every version change.
|
${o.meta.description}
|
||||||
'';
|
This derivation overrides the Proton version in Steam so that games using the Proton
|
||||||
};
|
from nix keep using it after every version change.
|
||||||
|
'';
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue