nixpkgs/pkgs/applications/emulators/cdemu/base.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.4 KiB
Nix
Raw Normal View History

2022-01-22 17:13:29 +00:00
{ pname, version, pkgSha256 }:
attrs@{ lib, stdenv, fetchurl, cmake, pkg-config, buildInputs, drvParams ? {}, ... }:
2022-01-22 17:13:29 +00:00
stdenv.mkDerivation ( rec {
inherit pname version buildInputs;
2015-02-10 01:27:04 +00:00
src = fetchurl {
2022-01-22 17:13:29 +00:00
url = "mirror://sourceforge/cdemu/${pname}-${version}.tar.xz";
2015-02-10 01:27:04 +00:00
sha256 = pkgSha256;
};
nativeBuildInputs = (attrs.nativeBuildInputs or [ ]) ++ [ pkg-config cmake ];
2015-02-10 01:27:04 +00:00
setSourceRoot = ''
mkdir build
cd build
sourceRoot="`pwd`"
'';
configurePhase = ''
2022-01-22 17:13:29 +00:00
cmake ../${pname}-${version} -DCMAKE_INSTALL_PREFIX=$out -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON
2015-02-10 01:27:04 +00:00
'';
meta = with lib; {
description = "A suite of tools for emulating optical drives and discs";
2015-02-10 01:27:04 +00:00
longDescription = ''
CDEmu consists of:
- a kernel module implementing a virtual drive-controller
- libmirage which is a software library for interpreting optical disc images
- a daemon which emulates the functionality of an optical drive+disc
- textmode and GTK clients for controlling the emulator
- an image analyzer to view the structure of image files
Optical media emulated by CDemu can be mounted within Linux. Automounting is also allowed.
'';
2021-08-30 15:11:01 +00:00
homepage = "https://cdemu.sourceforge.io/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
2021-01-15 13:21:58 +00:00
maintainers = with lib.maintainers; [ bendlas ];
2015-02-10 01:27:04 +00:00
};
} // drvParams)