btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ps / ps3-disc-dumper / package.nix
blobad875b19874337aa651a6687faae6c1ebdbc71ee
1 { lib
2 , buildDotnetModule
3 , fetchFromGitHub
4 , zlib
5 , openssl
6 }:
8 buildDotnetModule rec {
9   pname = "ps3-disc-dumper";
10   version = "3.2.3";
12   src = fetchFromGitHub {
13     owner = "13xforever";
14     repo = "ps3-disc-dumper";
15     rev = "v${version}";
16     sha256 = "sha256-m3TS9H6cbEAHn6PvYQDMzdKdnOnDSM4lxCTdHBCXLV4=";
17   };
19   selfContainedBuild = true;
21   projectFile = "UI.Console/UI.Console.csproj";
22   nugetDeps = ./deps.nix;
24   preConfigureNuGet = ''
25     # This should really be in the upstream nuget.config
26     dotnet nuget add source https://api.nuget.org/v3/index.json \
27       -n nuget.org --configfile nuget.config
28   '';
30   runtimeDeps = [
31     zlib
32     openssl
33   ];
35   meta = with lib; {
36     homepage = "https://github.com/13xforever/ps3-disc-dumper";
37     description = "Handy utility to make decrypted PS3 disc dumps";
38     license = licenses.mit;
39     maintainers = with maintainers; [ evanjs ];
40     platforms = [ "x86_64-linux" ];
41     mainProgram = "ps3-disc-dumper";
42   };