aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/filesystems/idsk/default.nix
blob: 72ed4f0ee1b4a7c21fc81212df12215f55f6f43e (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
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {

  pname = "idsk";
  version = "0.19";

  src = fetchFromGitHub {
    repo = "idsk";
    owner = "cpcsdk";
    rev = "v${version}";
    sha256 = "0b4my5cz5kbzh4n65jr721piha6zixaxmfiss2zidip978k9rb6f";
  };

  nativeBuildInputs = [ cmake ];

  installPhase = ''
    mkdir -p $out/bin
    cp iDSK $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Manipulating CPC dsk images and files";
    homepage = "https://github.com/cpcsdk/idsk" ;
    license = licenses.mit;
    maintainers = [ maintainers.genesis ];
    platforms = platforms.linux;
  };
}