Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions pkgs/by-name/al/alsa-ucm-conf/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
fetchurl,
lib,
stdenv,
coreutils,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "alsa-ucm-conf";
version = "1.2.12";

src = fetchurl {
url = "mirror://alsa/lib/alsa-ucm-conf-${version}.tar.bz2";
url = "mirror://alsa/lib/alsa-ucm-conf-${finalAttrs.version}.tar.bz2";
hash = "sha256-Fo58BUm3v4mRCS+iv7kDYx33edxMQ+6PQnf8t3LYwDU=";
};

Expand All @@ -19,6 +20,10 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall

substituteInPlace ucm2/lib/card-init.conf \
--replace-fail "/bin/rm" "${coreutils}/bin/rm" \
--replace-fail "/bin/mkdir" "${coreutils}/bin/mkdir"

mkdir -p $out/share/alsa
cp -r ucm ucm2 $out/share/alsa

Expand All @@ -29,7 +34,7 @@ stdenv.mkDerivation rec {
url = "https://www.alsa-project.org/files/pub/lib/";
};

meta = with lib; {
meta = {
homepage = "https://www.alsa-project.org/";
description = "ALSA Use Case Manager configuration";

Expand All @@ -38,8 +43,8 @@ stdenv.mkDerivation rec {
MIDI functionality to the Linux-based operating system.
'';

license = licenses.bsd3;
maintainers = [ maintainers.roastiek ];
platforms = platforms.linux;
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.roastiek ];
platforms = lib.platforms.linux;
};
}
})
Loading