-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from averyanalex/nixos
feat: add devel nix package and devshell
- Loading branch information
Showing
5 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# build dir | ||
builddir* | ||
|
||
# nix | ||
result | ||
.direnv | ||
|
||
# Workspaces | ||
*.code-workspace | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
description = "GTK4/Adwaita application that allows you to use Yandex Music service on Linux operating systems"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { | ||
self, | ||
nixpkgs, | ||
flake-utils, | ||
... | ||
}: | ||
flake-utils.lib.eachDefaultSystem | ||
( | ||
system: let | ||
pkgs = import nixpkgs {inherit system;}; | ||
|
||
nativeBuildInputs = with pkgs; [ | ||
blueprint-compiler | ||
desktop-file-utils | ||
meson | ||
ninja | ||
pkg-config | ||
vala | ||
]; | ||
|
||
buildInputs = with pkgs; [ | ||
glib-networking | ||
gst_all_1.gst-plugins-bad | ||
gst_all_1.gst-plugins-base | ||
gst_all_1.gst-plugins-good | ||
gst_all_1.gstreamer | ||
gtk4 | ||
json-glib | ||
libadwaita | ||
libgee | ||
libsoup_3 | ||
libxml2 | ||
sqlite | ||
webkitgtk_6_0 | ||
]; | ||
in { | ||
packages.default = pkgs.stdenv.mkDerivation { | ||
name = "cassette"; | ||
src = self; | ||
|
||
mesonFlags = [ | ||
"-Dprofile=development" | ||
]; | ||
|
||
nativeBuildInputs = with pkgs; | ||
[ | ||
wrapGAppsHook4 | ||
git | ||
] | ||
++ nativeBuildInputs; | ||
|
||
inherit buildInputs; | ||
|
||
strictDeps = true; | ||
}; | ||
devShells.default = pkgs.mkShell { | ||
packages = with pkgs; [alejandra] ++ nativeBuildInputs ++ buildInputs; | ||
}; | ||
} | ||
); | ||
} |