mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-27 02:43:54 +01:00
39 lines
651 B
Nix
39 lines
651 B
Nix
{
|
|
lib,
|
|
lv2,
|
|
pkg-config,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bankstown-lv2";
|
|
# tracking: https://src.fedoraproject.org/rpms/rust-bankstown-lv2
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chadmed";
|
|
repo = "bankstown";
|
|
rev = version;
|
|
hash = "sha256-IThXEY+mvT2MCw0PSWU/182xbUafd6dtm6hNjieLlKg=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-yRzM4tcYc6mweTpLnnlCeKgP00L2wRgHamtUzK9Kstc=";
|
|
|
|
installPhase = ''
|
|
export LIBDIR=$out/lib
|
|
mkdir -p $LIBDIR
|
|
|
|
make
|
|
make install
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
lv2
|
|
];
|
|
}
|