Skip to content

Commit dc322ae

Browse files
authored
slsk-batchdl: init at 2.4.7 (#429199)
2 parents 185acc4 + c632f2a commit dc322ae

File tree

2 files changed

+275
-0
lines changed

2 files changed

+275
-0
lines changed

pkgs/by-name/sl/slsk-batchdl/deps.json

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
lib,
3+
buildDotnetModule,
4+
dotnetCorePackages,
5+
fetchFromGitHub,
6+
nix-update-script,
7+
}:
8+
buildDotnetModule (finalAttrs: {
9+
pname = "slsk-batchdl";
10+
version = "2.4.7";
11+
12+
src = fetchFromGitHub {
13+
owner = "fiso64";
14+
repo = "slsk-batchdl";
15+
tag = "v${finalAttrs.version}";
16+
hash = "sha256-P7V7YJUA1bkfp13Glb1Q+NJ7iTya/xgO1TM88z1Nddc=";
17+
};
18+
19+
postPatch = ''
20+
# .NET 6 is EOL, .NET 8 works fine modulo the trimming flag.
21+
# See: https://github.com/fiso64/slsk-batchdl/issues/112
22+
substituteInPlace \
23+
slsk-batchdl/slsk-batchdl.csproj \
24+
slsk-batchdl.Tests/slsk-batchdl.Tests.csproj \
25+
--replace-fail "<TargetFramework>net6.0</TargetFramework>" "<TargetFramework>net8.0</TargetFramework>"
26+
'';
27+
28+
projectFile = "slsk-batchdl/slsk-batchdl.csproj";
29+
30+
# Tests fail to build.
31+
# See: https://github.com/fiso64/slsk-batchdl/issues/111
32+
# testProjectFile = "slsk-batchdl.Tests/slsk-batchdl.Tests.csproj";
33+
34+
dotnet-sdk = dotnetCorePackages.sdk_8_0;
35+
nugetDeps = ./deps.json;
36+
executables = [ "sldl" ];
37+
38+
dotnetFlags = [
39+
"--property:PublishSingleFile=true"
40+
# Note: This breaks Spotify authentication!
41+
# See: https://github.com/fiso64/slsk-batchdl/issues/112
42+
# "--property:PublishTrimmed=true"
43+
];
44+
45+
selfContainedBuild = true;
46+
47+
passthru.updateScript = nix-update-script { };
48+
49+
meta = {
50+
homepage = "https://github.com/fiso64/slsk-batchdl";
51+
description = "Advanced download tool for Soulseek";
52+
license = lib.licenses.gpl3Only;
53+
maintainers = [
54+
lib.maintainers._9999years
55+
];
56+
mainProgram = "sldl";
57+
};
58+
})

0 commit comments

Comments
 (0)