Skip to content

Commit 30348fd

Browse files
committed
anvil-editor: 0.4 -> 0.6
1 parent 93667cf commit 30348fd

File tree

2 files changed

+19
-29
lines changed

2 files changed

+19
-29
lines changed

pkgs/by-name/an/anvil-editor/extras.nix

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

pkgs/by-name/an/anvil-editor/package.nix

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
lib,
33
stdenv,
4-
buildGoModule,
4+
buildGo123Module,
55
fetchzip,
66
pkg-config,
77
copyDesktopItems,
@@ -12,26 +12,31 @@
1212
vulkan-headers,
1313
libGL,
1414
xorg,
15-
callPackage,
1615
buildPackages,
17-
anvilExtras ? callPackage ./extras.nix { },
1816
}:
1917

20-
buildGoModule rec {
18+
buildGo123Module (finalAttrs: {
2119
pname = "anvil-editor";
22-
version = "0.4";
20+
version = "0.6";
2321

2422
# has to update vendorHash of extra package manually
2523
# nixpkgs-update: no auto update
2624
src = fetchzip {
27-
url = "https://anvil-editor.net/releases/anvil-src-v${version}.tar.gz";
28-
hash = "sha256-0fi6UeppWC9KbWibjQYlPlRqsl9xsvij8YpJUS0S/wY=";
25+
url = "https://anvil-editor.net/releases/anvil-src-v${finalAttrs.version}.tar.gz";
26+
hash = "sha256-i0S5V3j6OPpu4z1ljDKP3WYa9L+EKwo/MBNgW2ENYk8=";
2927
};
3028

3129
modRoot = "anvil/src/anvil";
3230

3331
vendorHash = "sha256-1oFBV7D7JgOt5yYAxVvC4vL4ccFv3JrNngZbo+5pzrk=";
3432

33+
anvilExtras = buildGo123Module {
34+
pname = "anvil-editor-extras";
35+
inherit (finalAttrs) version src meta;
36+
vendorHash = "sha256-4pfk5XuwDbCWFZIF+1l+dy8NfnGNjgHmSg9y6/RnTSo=";
37+
modRoot = "anvil-extras";
38+
};
39+
3540
nativeBuildInputs =
3641
[
3742
pkg-config
@@ -60,8 +65,11 @@ buildGoModule rec {
6065
exec = "anvil";
6166
icon = "anvil";
6267
desktopName = "Anvil";
63-
comment = meta.description;
64-
categories = [ "TextEditor" ];
68+
comment = finalAttrs.meta.description;
69+
categories = [
70+
"Utility"
71+
"TextEditor"
72+
];
6573
startupWMClass = "anvil";
6674
})
6775
];
@@ -76,13 +84,9 @@ buildGoModule rec {
7684
install -Dm644 anvil_''${square}x32.png $out/share/icons/hicolor/''${square}/apps/anvil.png
7785
done
7886
popd
79-
cp ${anvilExtras}/bin/* $out/bin
87+
cp ${finalAttrs.anvilExtras}/bin/* $out/bin
8088
'';
8189

82-
passthru = {
83-
inherit anvilExtras;
84-
};
85-
8690
meta = {
8791
description = "Graphical, multi-pane tiling editor inspired by Acme";
8892
homepage = "https://anvil-editor.net";
@@ -91,4 +95,4 @@ buildGoModule rec {
9195
maintainers = with lib.maintainers; [ aleksana ];
9296
platforms = with lib.platforms; unix ++ windows;
9397
};
94-
}
98+
})

0 commit comments

Comments
 (0)