chore: clean up some packaging code
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-03-22 16:02:57 -04:00
parent 6b3a78c5cf
commit 8720d95e76
7 changed files with 35 additions and 26 deletions

View file

@ -12,6 +12,7 @@
USER_ID = toString config.users.users.${mainUser}.uid;
GROUP_ID = toString config.users.users.${mainUser}.uid;
KEEP_APP_RUNNING = 1;
DARK_MODE = 1;
TZ = "America/New_York";
};

View file

@ -1,6 +1,8 @@
{
fcft,
# nix build inputs
fetchFromGitea,
# deps
fcft,
...
}:
fcft.overrideAttrs (o: rec {

View file

@ -1,6 +1,4 @@
{
# params
enableLocalIcons ? true,
# nix build inputs
lib,
stdenv,
@ -10,6 +8,8 @@
# deps
nodejs,
pnpm,
# params
enableLocalIcons ? true,
...
}: let
inherit (lib) getExe optionalString;

View file

@ -1,8 +1,10 @@
{
# nix build inputs
lib,
stdenv,
fetchurl,
makeWrapper,
# deps
jre,
...
}: let
@ -43,7 +45,7 @@ in
homepage = "https://github.com/Snd-R/komf";
sourceProvenance = with lib.sourceTypes; [binaryBytecode];
description = ''
komf is a tool that fetches metadata and thumbnails for your digital comic book library.
Komf is a tool that fetches metadata and thumbnails for your digital comic book library.
'';
};
}

View file

@ -1,10 +1,10 @@
{
# nix build inputs
lib,
rustPlatform,
fetchFromGitHub,
...
}:
rustPlatform.buildRustPackage rec {
}: let
pname = "nbted";
version = "1.5.0";
@ -14,26 +14,29 @@ rustPlatform.buildRustPackage rec {
tag = version;
hash = "sha256-5gCxTFjI3WDC9+F9i4I2g17+wHWnQHjC4Hurj5CMhB4=";
};
in
rustPlatform.buildRustPackage {
inherit pname src version;
cargoLock.lockFile = "${src}/Cargo.lock";
cargoLock.lockFile = "${src}/Cargo.lock";
env.OUT_DIR = "$out";
env.OUT_DIR = "$out";
patchPhase = ''
export OUT_DIR=$(mktemp -d)
patchPhase = ''
export OUT_DIR=$(mktemp -d)
rm ./build.rs
echo '"${version}"' > $OUT_DIR/git-revision.txt
substituteInPlace ./Cargo.toml --replace-fail "build = \"build.rs\"" ""
'';
meta = {
mainProgram = pname;
license = lib.licenses.cc0;
homepage = "https://github.com/C4K3/nbted";
description = ''
Command-line NBT editor written in Rust. It does precisely one thing: convert NBT files to
a pretty text format, and reverse the pretty text format back into NBT.
rm ./build.rs
echo '"${version}"' > $OUT_DIR/git-revision.txt
substituteInPlace ./Cargo.toml --replace-fail "build = \"build.rs\"" ""
'';
};
}
meta = {
mainProgram = pname;
license = lib.licenses.cc0;
homepage = "https://github.com/C4K3/nbted";
description = ''
Command-line NBT editor written in Rust. It does precisely one thing: convert NBT files to
a pretty text format, and reverse the pretty text format back into NBT.
'';
};
}

View file

@ -1,4 +1,5 @@
{
# nix build inputs
lib,
pkgs,
poetry2nix,

View file

@ -2,9 +2,9 @@
{
# nix build inputs
lib,
fetchPypi,
# deps
python3Packages,
fetchPypi,
...
}:
python3Packages.buildPythonPackage rec {
pname = "urllib3";