ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / id / idsk / package.nix
blobc053f3aa0c16c31d6cda46dcad63de08dd8bd1bd
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 }:
8 stdenv.mkDerivation rec {
9   pname = "idsk";
10   version = "0.20";
12   src = fetchFromGitHub {
13     owner = "cpcsdk";
14     repo = "idsk";
15     rev = "v${version}";
16     hash = "sha256-rYClWq1Nl3COoG+eOJyFDTvBSzpHpGminU4bndZs6xc=";
17   };
19   patches = [
20     (fetchpatch {
21       url = "https://github.com/cpcsdk/idsk/commit/52fa3cdcc10d4ba6c75cab10ca7067b129198d92.patch";
22       hash = "sha256-Ll0apllNj+fP7kZ1n+bBowrlskLK1bIashxxgPVVxmg=";
23     })
24   ];
26   nativeBuildInputs = [
27     cmake
28   ];
30   installPhase = ''
31     runHook preInstall
33     install -Dm755 iDSK $out/bin/iDSK
35     runHook postInstall
36   '';
38   meta = with lib; {
39     description = "Manipulating CPC dsk images and files";
40     homepage = "https://github.com/cpcsdk/idsk";
41     changelog = "https://github.com/cpcsdk/idsk/releases/tag/${src.rev}";
42     license = licenses.mit;
43     mainProgram = "iDSK";
44     maintainers = with maintainers; [ wegank ];
45     platforms = platforms.all;
46   };