35 lines
894 B
Nix
35 lines
894 B
Nix
{
|
|
description = "Spotify flake";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils}:
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
spotify-adblock = pkgs.stdenv.mkDerivation {
|
|
name = "spotify-adblock";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "abba23";
|
|
repo = "spotify-adblock";
|
|
rev = "HEAD";
|
|
sha256 = "sha256-5tZ+Y7dhzb6wmyQ+5FIJDHH0KqkXbiB259Yo7ATGjSU=";
|
|
};
|
|
};
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
git
|
|
gnumake
|
|
rustc
|
|
cargo
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|