forked from mirrors/nixpkgs
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
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, alsaLib, gtk2, libjack2, libuuid, libxml2
|
|
, makeWrapper, pkgconfig, readline }:
|
|
|
|
assert libuuid != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lash";
|
|
version = "0.5.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/lash/${pname}-${version}.tar.gz";
|
|
sha256 = "05kc4brcx8mncai0rj2gz4s4bsrsy9q8xlnaddf75i0m8jl7snhh";
|
|
};
|
|
|
|
# http://permalink.gmane.org/gmane.linux.redhat.fedora.extras.cvs/822346
|
|
patches = [ ./socket.patch ./gcc-47.patch ];
|
|
|
|
buildInputs = [ alsaLib gtk2 libjack2 libxml2 makeWrapper
|
|
pkgconfig readline ];
|
|
propagatedBuildInputs = [ libuuid ];
|
|
NIX_LDFLAGS = "-lm -lpthread -luuid";
|
|
|
|
postInstall = ''
|
|
for i in lash_control lash_panel
|
|
do wrapProgram "$out/bin/$i" --prefix LD_LIBRARY_PATH ":" "${libuuid}/lib"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Linux Audio Session Handler";
|
|
longDescription = ''
|
|
Session management system for GNU/Linux audio applications.
|
|
'';
|
|
homepage = "https://www.nongnu.org/lash";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.goibhniu ];
|
|
};
|
|
}
|