nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildDotnetModule,
5 dotnetCorePackages,
6 audiothekar,
7 testers,
8}:
9
10buildDotnetModule rec {
11 pname = "audiothekar";
12 version = "1.0.1";
13
14 src = fetchFromGitHub {
15 owner = "fxsth";
16 repo = "audiothekar";
17 tag = "v${version}";
18 sha256 = "sha256-DZ4E8numXJdkvX5WYM6cioW5J89YuD9Hi8NfK+Z39cY=";
19 };
20
21 projectFile = "Audiothekar.sln";
22
23 # > Unable to use package assets cache due to I/O error. This can occur when
24 # > the same project is built more than once in parallel. Performance may be
25 # > degraded, but the build result will not be impacted.
26 enableParallelBuilding = false;
27
28 doCheck = false;
29
30 nugetDeps = ./deps.json;
31
32 dotnet-sdk = dotnetCorePackages.sdk_8_0;
33 dotnet-runtime = dotnetCorePackages.runtime_8_0;
34
35 postInstall = ''
36 install -m 644 -D -t "$out/share/doc/${pname}" License.md
37 '';
38
39 passthru = {
40 updateScript = ./update.sh;
41 tests.version = testers.testVersion {
42 package = audiothekar;
43 command = "audiothekar-cli --version";
44 };
45 };
46
47 meta = with lib; {
48 description = "Download-Client für die ARD-Audiothek";
49 longDescription = ''
50 Audiothekar is a command line client to browse and download programs from
51 German public broadcast online offering at https://www.ardaudiothek.de/.
52 '';
53 homepage = "https://github.com/fxsth/Audiothekar";
54 license = licenses.mit;
55 maintainers = with maintainers; [
56 wamserma
57 ];
58 platforms = [ "x86_64-linux" ]; # needs some work to enable dotnet-sdk.meta.platforms;
59 mainProgram = "audiothekar-cli";
60 };
61}