Skip to content

Commit 649a08c

Browse files
authored
Merge pull request #2 from articblush/flake
Implement nix flakes
2 parents f49ca26 + 5e2f963 commit 649a08c

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

flake.lock

+43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
description = "Articblush gtk theme";
3+
4+
inputs.flake-utils.url = "github:numtide/flake-utils";
5+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
7+
outputs = { self, nixpkgs, flake-utils }:
8+
flake-utils.lib.eachDefaultSystem (system:
9+
let pkgs = nixpkgs.legacyPackages.${system};
10+
in rec {
11+
packages = flake-utils.lib.flattenTree {
12+
articblush-gtk = pkgs.stdenv.mkDerivation rec {
13+
pname = "articblush-gtk";
14+
version = "0.1.0";
15+
src = ./.;
16+
installPhase = ''
17+
mkdir -p $out/share/themes/
18+
cp -r Articblush $out/share/themes/
19+
'';
20+
};
21+
};
22+
defaultPackage = packages.articblush-gtk;
23+
});
24+
}

0 commit comments

Comments
 (0)