mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
|
, SDL2, alsaLib, libjack2, lhasa, perl, rtmidi, zlib, zziplib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.03.00";
|
|
pname = "milkytracker";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "milkytracker";
|
|
repo = "MilkyTracker";
|
|
rev = "v${version}";
|
|
sha256 = "025fj34gq2kmkpwcswcyx7wdxb89vm944dh685zi4bxx0hz16vvk";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
buildInputs = [ SDL2 alsaLib libjack2 lhasa perl rtmidi zlib zziplib ];
|
|
|
|
# Somehow this does not get set automatically
|
|
cmakeFlags = [ "-DSDL2MAIN_LIBRARY=${SDL2}/lib/libSDL2.so" ];
|
|
|
|
postInstall = ''
|
|
install -Dm644 $src/resources/milkytracker.desktop $out/share/applications/milkytracker.desktop
|
|
install -Dm644 $src/resources/pictures/carton.png $out/share/pixmaps/milkytracker.png
|
|
install -Dm644 $src/resources/milkytracker.appdata $out/share/appdata/milkytracker.appdata.xml
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Music tracker application, similar to Fasttracker II";
|
|
homepage = "http://milkytracker.org";
|
|
license = licenses.gpl3Plus;
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
maintainers = with maintainers; [ zoomulator ];
|
|
};
|
|
}
|