refactor: improve custom packages' 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
7c9af8ebdd
commit
a7b7966d52
19 changed files with 47 additions and 40 deletions
|
@ -8,7 +8,7 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "trash";
|
name = "trash";
|
||||||
version = trash-d-src.rev;
|
version = trash-d-src.shortRev;
|
||||||
|
|
||||||
src = trash-d-src;
|
src = trash-d-src;
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
plymouth = prev.callPackage ./plymouth.nix inputs;
|
plymouth = prev.callPackage ./plymouth.nix inputs;
|
||||||
wallpaper = prev.fetchurl (import ./wallpaper.nix);
|
wallpaper = prev.fetchurl (import ./wallpaper.nix);
|
||||||
in {
|
in {
|
||||||
|
version = gtk-theme-src.shortRev;
|
||||||
src = gtk-theme-src;
|
src = gtk-theme-src;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "dracula-git";
|
name = "dracula-git";
|
||||||
version = git-theme-src.rev;
|
version = git-theme-src.shortRev;
|
||||||
|
|
||||||
src = git-theme-src;
|
src = git-theme-src;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "dracula-plymouth";
|
name = "dracula-plymouth";
|
||||||
version = plymouth-theme-src.rev;
|
version = plymouth-theme-src.shortRev;
|
||||||
|
|
||||||
src = plymouth-theme-src;
|
src = plymouth-theme-src;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "pam-fprint-grosshack";
|
name = "pam-fprint-grosshack";
|
||||||
version = pam-fprint-grosshack-src.rev;
|
version = pam-fprint-grosshack-src.shortRev;
|
||||||
|
|
||||||
src = pam-fprint-grosshack-src;
|
src = pam-fprint-grosshack-src;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "pokemon-colorscripts";
|
name = "pokemon-colorscripts";
|
||||||
version = pokemon-colorscripts-src.rev;
|
version = pokemon-colorscripts-src.shortRev;
|
||||||
|
|
||||||
src = pokemon-colorscripts-src;
|
src = pokemon-colorscripts-src;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
gsr = pkgs.stdenv.mkDerivation {
|
gsr = pkgs.stdenv.mkDerivation {
|
||||||
name = "gpu-screen-recorder";
|
name = "gpu-screen-recorder";
|
||||||
version = gpu-screen-recorder-src.rev;
|
version = gpu-screen-recorder-src.shortRev;
|
||||||
|
|
||||||
src = gpu-screen-recorder-src;
|
src = gpu-screen-recorder-src;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,21 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pocketsphinx-src,
|
||||||
|
subsync-src,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.vars) mainUser;
|
inherit (config.vars) mainUser;
|
||||||
|
|
||||||
sphinxbase = pkgs.callPackage ./sphinxbase.nix {};
|
sphinxbase = pkgs.callPackage ./sphinxbase.nix {};
|
||||||
pocketsphinx = pkgs.callPackage ./pocketsphinx.nix {inherit sphinxbase;};
|
|
||||||
subsync = pkgs.callPackage ./subsync.nix {inherit sphinxbase pocketsphinx;};
|
pocketsphinx = pkgs.callPackage ./pocketsphinx.nix {
|
||||||
|
inherit sphinxbase pocketsphinx-src;
|
||||||
|
};
|
||||||
|
|
||||||
|
subsync = pkgs.callPackage ./subsync.nix {
|
||||||
|
inherit sphinxbase pocketsphinx subsync-src;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
systemd = {
|
systemd = {
|
||||||
services.subsync-job = {
|
services.subsync-job = {
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
{
|
{
|
||||||
cmake,
|
cmake,
|
||||||
fetchFromGitHub,
|
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
pocketsphinx-src,
|
||||||
sphinxbase,
|
sphinxbase,
|
||||||
stdenv,
|
stdenv,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
stdenv.mkDerivation rec {
|
pyproject =
|
||||||
name = "pocketsphinx";
|
(
|
||||||
version = "unstable";
|
fromTOML (
|
||||||
|
builtins.readFile "${pocketsphinx-src}/pyproject.toml"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.project;
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "pocketsphinx";
|
||||||
|
inherit (pyproject) version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = pocketsphinx-src;
|
||||||
owner = "cmusphinx";
|
|
||||||
repo = "pocketsphinx";
|
|
||||||
rev = "7be89aae3e76568e02e4f3d41cf1adcb7654430c";
|
|
||||||
hash = "sha256-imrwUIpORpfInitVjU11SKPPpjvObKyfI8IB4f41hfY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [pkg-config];
|
buildInputs = [pkg-config];
|
||||||
nativeBuildInputs = [cmake sphinxbase];
|
nativeBuildInputs = [cmake sphinxbase];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
cp -ar ${src}/src/util $out/include
|
cp -ar ${src}/src/util $out/include
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "sphinxbase";
|
name = "sphinxbase";
|
||||||
version = "unstable";
|
version = "5prealpha"; # Deprecated
|
||||||
|
|
||||||
buildInputs = [bison pkg-config python3 swig2];
|
buildInputs = [bison pkg-config python3 swig2];
|
||||||
nativeBuildInputs = [autoreconfHook];
|
nativeBuildInputs = [autoreconfHook];
|
||||||
|
|
|
@ -1,24 +1,19 @@
|
||||||
{
|
{
|
||||||
fetchFromGitHub,
|
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
pocketsphinx,
|
pocketsphinx,
|
||||||
python3Packages,
|
python3Packages,
|
||||||
sphinxbase,
|
sphinxbase,
|
||||||
|
subsync-src,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) concatStringsSep;
|
inherit (builtins) concatStringsSep;
|
||||||
in
|
in
|
||||||
python3Packages.buildPythonPackage {
|
python3Packages.buildPythonPackage {
|
||||||
pname = "subsync";
|
pname = "subsync";
|
||||||
version = "unstable";
|
version = subsync-src.shortRev;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = subsync-src;
|
||||||
owner = "sc0ty";
|
|
||||||
repo = "subsync";
|
|
||||||
rev = "8e0cf71960b9a5418acb60a1910cf3295d67e6bf";
|
|
||||||
hash = "sha256-jUur1U1yNShQx70/mj36+sGoVk8+E5hQUV/G79q2A2k=";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "firefox-gx";
|
pname = "firefox-gx";
|
||||||
version = firefox-gx-src.rev;
|
version = firefox-gx-src.shortRev;
|
||||||
|
|
||||||
src = firefox-gx-src;
|
src = firefox-gx-src;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
buildLua (finalAttrs: {
|
buildLua (finalAttrs: {
|
||||||
pname = "modernx";
|
pname = "modernx";
|
||||||
version = modernx-src.rev;
|
version = modernx-src.shortRev;
|
||||||
|
|
||||||
src = modernx-src;
|
src = modernx-src;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
buildLua {
|
buildLua {
|
||||||
pname = "persist-properties";
|
pname = "persist-properties";
|
||||||
version = persist-properties-src.rev;
|
version = persist-properties-src.shortRev;
|
||||||
|
|
||||||
src = persist-properties-src;
|
src = persist-properties-src;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
buildLua {
|
buildLua {
|
||||||
pname = "pointer-event";
|
pname = "pointer-event";
|
||||||
version = pointer-event-src.rev;
|
version = pointer-event-src.shortRev;
|
||||||
|
|
||||||
src = pointer-event-src;
|
src = pointer-event-src;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
buildLua {
|
buildLua {
|
||||||
pname = "touch-gestures";
|
pname = "touch-gestures";
|
||||||
version = touch-gestures-src.rev;
|
version = touch-gestures-src.shortRev;
|
||||||
|
|
||||||
src = touch-gestures-src;
|
src = touch-gestures-src;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
buildLua rec {
|
buildLua rec {
|
||||||
pname = "undo-redo";
|
pname = "undo-redo";
|
||||||
version = eisa-scripts-src.rev;
|
version = eisa-scripts-src.shortRev;
|
||||||
|
|
||||||
src = eisa-scripts-src;
|
src = eisa-scripts-src;
|
||||||
scriptPath = "${src}/scripts/UndoRedo.lua";
|
scriptPath = "${src}/scripts/UndoRedo.lua";
|
||||||
|
|
Loading…
Reference in a new issue