Fix the nix package build
This commit is contained in:
@@ -18,7 +18,6 @@ result
|
|||||||
.cargo/
|
.cargo/
|
||||||
.direnv/
|
.direnv/
|
||||||
.pre-commit-config.yaml
|
.pre-commit-config.yaml
|
||||||
dist/
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Rust
|
# Rust
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_event_type_name() {
|
fn test_event_type_name() {
|
||||||
let handler = WebhookHandler::new(vec![]);
|
let handler = WebhookHandler::new(vec![]).unwrap();
|
||||||
|
|
||||||
let event = Event::SyncStarted {
|
let event = Event::SyncStarted {
|
||||||
origin_id: OriginId::from("test"),
|
origin_id: OriginId::from("test"),
|
||||||
@@ -287,7 +287,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_matches_filter_empty() {
|
fn test_matches_filter_empty() {
|
||||||
let handler = WebhookHandler::new(vec![]);
|
let handler = WebhookHandler::new(vec![]).unwrap();
|
||||||
let config = WebhookConfig {
|
let config = WebhookConfig {
|
||||||
url: "http://example.com".to_string(),
|
url: "http://example.com".to_string(),
|
||||||
secret: None,
|
secret: None,
|
||||||
@@ -304,7 +304,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_matches_filter_specific() {
|
fn test_matches_filter_specific() {
|
||||||
let handler = WebhookHandler::new(vec![]);
|
let handler = WebhookHandler::new(vec![]).unwrap();
|
||||||
let config = WebhookConfig {
|
let config = WebhookConfig {
|
||||||
url: "http://example.com".to_string(),
|
url: "http://example.com".to_string(),
|
||||||
secret: None,
|
secret: None,
|
||||||
|
|||||||
Vendored
+11
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=MusicFS - Virtual FUSE Filesystem for Music
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/musicfs mount /mnt/music --origin /path/to/music
|
||||||
|
ExecStopPost=/usr/bin/fusermount -u /mnt/music
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -13,7 +13,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = ./Cargo.lock;
|
lockFile = ./Cargo.lock;
|
||||||
};
|
};
|
||||||
cargoHash = lib.fakeHash;
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|||||||
Reference in New Issue
Block a user