summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ci/ciderpress2/package.nix
blob: fe4d0662c82f3ebb4af69e4f83dfe5f63e36199f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  buildDotnetModule,
  fetchFromGitHub,
}:

buildDotnetModule rec {
  pname = "ciderpress2";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "fadden";
    repo = "CiderPress2";
    tag = "v${version}";
    hash = "sha256-nzCuKCntqYVhjSHljPkY5ziAjYH/qGUqukRPrHzhOzo=";
  };

  projectFile = [ "cp2/cp2.csproj" ];

  executables = [ "cp2" ];

  patches = [ ./retarget-net8.patch ];

  preBuild = ''
    # Disable MS telemetry
    export DOTNET_CLI_TELEMETRY_OPTOUT=1
    export DOTNET_NOLOGO=1
  '';

  meta = {
    description = "File archive utility for Apple II disk images and file archives";
    longDescription = ''
      CiderPress 2 is a file archive utility for Apple II disk images and file
      archives. It can extract files from disk images and file archives, and
      create new archives.
    '';
    homepage = "https://github.com/fadden/CiderPress2";
    changelog = "https://github.com/fadden/CiderPress2/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ nulleric ];
    platforms = lib.platforms.unix;
    mainProgram = "cp2";
  };
}