Skip to content

Commit 5e0bf7f

Browse files
Merge pull request #10 from taffybar/version-0.1.4.0
Bump version to 0.1.4.0 & CI updates
2 parents 9760438 + 85a22b3 commit 5e0bf7f

File tree

8 files changed

+157
-63
lines changed

8 files changed

+157
-63
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
name: Nix Flake - Linux
1111
steps:
12+
- name: Clone project
13+
uses: actions/checkout@v5
1214
- name: Install Nix
13-
uses: cachix/install-nix-action@v13
15+
uses: cachix/install-nix-action@v31
1416
with:
15-
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
16-
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
17-
extra_nix_config: |
18-
experimental-features = nix-command flakes
19-
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
20-
- name: Clone project
21-
uses: actions/checkout@v2
17+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2218
- name: Build
2319
run: nix build
20+
- run: nix flake check

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.stack-work/
2-
gtk-strut.cabal
2+
/dist-newstyle/
3+
/result*
34
*~

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Changelog for gtk-strut
22

3-
## Unreleased changes
3+
## 0.1.4.0
4+
5+
- Use the `gi-gtk3` and `gi-gdk3` build dependencies, which have been
6+
renamed from `gi-gtk` and `gi-gdk`.

flake.lock

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
{
22
description = "gtk-strut";
33
inputs = {
4+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
45
flake-utils.url = "github:numtide/flake-utils";
5-
git-ignore-nix.url = github:hercules-ci/gitignore.nix/master;
6+
git-ignore-nix.url = "github:hercules-ci/gitignore.nix";
7+
git-ignore-nix.inputs.nixpkgs.follows = "nixpkgs";
68
};
79
outputs = { self, flake-utils, nixpkgs, git-ignore-nix }:
8-
let
9-
overlay = final: prev: {
10+
flake-utils.lib.eachDefaultSystem (system: let
11+
pkgs = import nixpkgs {
12+
inherit system;
13+
overlays = [ self.overlays.default ];
14+
config.allowBroken = true;
15+
};
16+
in {
17+
devShells.default = pkgs.haskellPackages.shellFor {
18+
packages = p: [ p.gtk-strut ];
19+
nativeBuildInputs = with pkgs.haskellPackages; [
20+
cabal-install hlint ghcid ormolu implicit-hie haskell-language-server
21+
];
22+
};
23+
packages.default = pkgs.haskellPackages.gtk-strut;
24+
}) // {
25+
overlays.default = final: prev: {
1026
haskellPackages = prev.haskellPackages.override (old: {
1127
overrides = prev.lib.composeExtensions (old.overrides or (_: _: {}))
1228
(hself: hsuper: {
@@ -17,17 +33,5 @@
1733
});
1834
});
1935
};
20-
overlays = [ overlay ];
21-
in flake-utils.lib.eachDefaultSystem (system:
22-
let pkgs = import nixpkgs { inherit system overlays; config.allowBroken = true; };
23-
in
24-
rec {
25-
devShell = pkgs.haskellPackages.shellFor {
26-
packages = p: [ p.gtk-strut ];
27-
nativeBuildInputs = with pkgs.haskellPackages; [
28-
cabal-install hlint ghcid ormolu implicit-hie haskell-language-server
29-
];
30-
};
31-
defaultPackage = pkgs.haskellPackages.gtk-strut;
32-
}) // { inherit overlay overlays; } ;
36+
};
3337
}

gtk-strut.cabal

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
cabal-version: 1.12
2+
3+
-- This file has been generated from package.yaml by hpack version 0.38.2.
4+
--
5+
-- see: https://github.com/sol/hpack
6+
7+
name: gtk-strut
8+
version: 0.1.4.0
9+
synopsis: Library for creating strut windows with gi-gtk
10+
description: Please see the README on Github at <https://github.com/IvanMalison/gtk-strut#readme>
11+
category: System
12+
homepage: https://github.com/IvanMalison/gtk-strut#readme
13+
bug-reports: https://github.com/IvanMalison/gtk-strut/issues
14+
author: Ivan Malison
15+
maintainer: [email protected]
16+
copyright: Ivan Malison
17+
license: BSD3
18+
license-file: LICENSE
19+
build-type: Simple
20+
extra-source-files:
21+
README.md
22+
ChangeLog.md
23+
24+
source-repository head
25+
type: git
26+
location: https://github.com/IvanMalison/gtk-strut
27+
28+
library
29+
exposed-modules:
30+
Graphics.UI.GIGtkStrut
31+
other-modules:
32+
Graphics.UI.EWMHStrut
33+
hs-source-dirs:
34+
src
35+
build-depends:
36+
base >=4.7 && <5
37+
, data-default
38+
, gi-gdk3
39+
, gi-gtk3
40+
, hslogger
41+
, text
42+
, transformers
43+
default-language: Haskell2010

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: gtk-strut
2-
version: 0.1.3.2
2+
version: 0.1.4.0
33
github: "IvanMalison/gtk-strut"
44
license: BSD3
55
author: "Ivan Malison"

0 commit comments

Comments
 (0)