spotify-adblock: init

This commit is contained in:
LavaDesu 2021-09-19 11:31:11 +07:00
parent 48f93d7b98
commit 00ceb3cf50
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 210 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ inputs
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage {
pname = "spotify-adblock";
version = "1.0";
src = inputs.spotify-adblock;
cargoSha256 = "1dabmqjvbxdgs8im7asilv4nnx6xzcbwbiy924sci1zbd5isxgfx";
cargoPatches = [ ./0001-cargo.patch ];
patches = [ ./0002-allow-setting-config-from-environment-variable.patch ];
postInstall = ''
cp ${inputs.spotify-adblock}/config.toml $out/lib
'';
}