nixpkgs/pkgs/by-name/la/lash/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

40 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, alsa-lib, gtk2, libjack2, libuuid, libxml2
, makeWrapper, pkg-config, 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 ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ alsa-lib gtk2 libjack2 libxml2 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 = "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 = [ ];
};
}