feat(trash-d): use latest release instead of latest git and bump to 20
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
c25978aaa8
commit
1b9de1ed75
5 changed files with 25 additions and 41 deletions
|
@ -79,6 +79,10 @@ const main = async() => {
|
||||||
console.log(updateCustomPackage('some-sass-language-server'));
|
console.log(updateCustomPackage('some-sass-language-server'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args['t'] || args['trash-d']) {
|
||||||
|
console.log(runNixUpdate('trash-d'));
|
||||||
|
}
|
||||||
|
|
||||||
if (args['v'] || args['vuetorrent']) {
|
if (args['v'] || args['vuetorrent']) {
|
||||||
console.log(updateVuetorrent());
|
console.log(updateVuetorrent());
|
||||||
}
|
}
|
||||||
|
@ -139,6 +143,7 @@ const main = async() => {
|
||||||
updatePackage('jmusicbot');
|
updatePackage('jmusicbot');
|
||||||
updatePackage('pam-fprint-grosshack');
|
updatePackage('pam-fprint-grosshack');
|
||||||
updatePackage('protonhax');
|
updatePackage('protonhax');
|
||||||
|
updatePackage('trash-d');
|
||||||
|
|
||||||
|
|
||||||
spawnSync('nixFastBuild', [], {
|
spawnSync('nixFastBuild', [], {
|
||||||
|
|
17
flake.lock
generated
17
flake.lock
generated
|
@ -1718,7 +1718,6 @@
|
||||||
"spotifywebapi-src": "spotifywebapi-src",
|
"spotifywebapi-src": "spotifywebapi-src",
|
||||||
"subscleaner-src": "subscleaner-src",
|
"subscleaner-src": "subscleaner-src",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"trash-d-src": "trash-d-src",
|
|
||||||
"treefmt-nix": "treefmt-nix",
|
"treefmt-nix": "treefmt-nix",
|
||||||
"ts-for-gir-src": "ts-for-gir-src",
|
"ts-for-gir-src": "ts-for-gir-src",
|
||||||
"tuya-local-src": "tuya-local-src",
|
"tuya-local-src": "tuya-local-src",
|
||||||
|
@ -1884,22 +1883,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"trash-d-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1734656654,
|
|
||||||
"narHash": "sha256-zYAEw3sW9jJgw0XFfi7IEdJTKybuRdBXMCqoI+AqJko=",
|
|
||||||
"owner": "rushsteve1",
|
|
||||||
"repo": "trash-d",
|
|
||||||
"rev": "2537f7b94998ed60989df370583d92235cd6d169",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rushsteve1",
|
|
||||||
"repo": "trash-d",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
|
@ -478,12 +478,6 @@
|
||||||
repo = "default-linux";
|
repo = "default-linux";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
trash-d-src = {
|
|
||||||
flake = false;
|
|
||||||
owner = "rushsteve1";
|
|
||||||
repo = "trash-d";
|
|
||||||
type = "github";
|
|
||||||
};
|
|
||||||
treefmt-nix = {
|
treefmt-nix = {
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
owner = "numtide";
|
owner = "numtide";
|
||||||
|
|
|
@ -331,10 +331,6 @@ let
|
||||||
}
|
}
|
||||||
|
|
||||||
# Overlays & packages
|
# Overlays & packages
|
||||||
{
|
|
||||||
owner = "rushsteve1";
|
|
||||||
repo = "trash-d";
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
type = "gitlab";
|
type = "gitlab";
|
||||||
owner = "rogs";
|
owner = "rogs";
|
||||||
|
|
|
@ -2,43 +2,49 @@
|
||||||
# nix build inputs
|
# nix build inputs
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
trash-d-src,
|
fetchFromGitHub,
|
||||||
# deps
|
# deps
|
||||||
dmd,
|
dmd,
|
||||||
dub,
|
dub,
|
||||||
ronn,
|
just,
|
||||||
|
scdoc,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) fromJSON readFile;
|
|
||||||
tag = (fromJSON (readFile "${trash-d-src}/dub.json")).version;
|
|
||||||
|
|
||||||
pname = "trash";
|
pname = "trash";
|
||||||
version = "${tag}+${trash-d-src.shortRev}";
|
version = "20";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
src = trash-d-src;
|
src = fetchFromGitHub {
|
||||||
|
owner = "rushsteve1";
|
||||||
|
repo = "trash-d";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-x76kEqgwJGW4wmEyr3XzEXZ2AvRsm9ewrfjRjIsOphw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
just
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
dub
|
|
||||||
ronn
|
|
||||||
dmd
|
dmd
|
||||||
|
dub
|
||||||
|
scdoc
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
# https://github.com/svanderburg/node2nix/issues/217#issuecomment-751311272
|
# https://github.com/svanderburg/node2nix/issues/217#issuecomment-751311272
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
|
||||||
dub build
|
just release manpage
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/man/man1
|
mkdir -p $out/{bin,man/man1}
|
||||||
|
|
||||||
cp -a ./build/trash $out/bin/
|
cp -a ./build/trash $out/bin
|
||||||
|
cp -a ./build/trash.1 $out/man/man1
|
||||||
ronn --roff --pipe MANUAL.md > $out/man/man1/trash.1
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue