Skip to content

Commit

Permalink
Added a proper version number + some Nix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ALEX11BR committed Oct 9, 2021
1 parent 4dd4397 commit 56d6d0e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/
result/
.vscode/
28 changes: 28 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ pkgs, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "themechanger";
version = "0.10.0";
format = "other";
src = ./.;
nativeBuildInputs = with pkgs; [
gobject-introspection
meson
ninja
pkg-config
wrapGAppsHook
desktop-file-utils
gtk3
];
buildInputs = with pkgs; [
glib
gtk3
python3
gsettings-desktop-schemas
];
propagatedBuildInputs = with python3Packages; [
pygobject3
];
postPatch = ''
patchShebangs postinstall.py
'';
}
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('themechanger', 'c',
version: '0.1.0',
version: '0.10.0',
meson_version: '>= 0.50.0',
default_options: [ 'warning_level=2',
],
Expand Down
10 changes: 10 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
with import <nixpkgs> {};
mkShell {
buildInputs = [
(import ./default.nix { inherit pkgs python3Packages; })
];
shellHook = ''
themechanger
exit
'';
}

0 comments on commit 56d6d0e

Please sign in to comment.