Commit 51e871cb3a

51e871cb3a35d846bf4afc785f85bda0e6a13ac1

parent: b10c98588b

Unregistered key

vaw <git@nlih.de> · 2026-07-24 14:36 UTC
committer: <noreply@github.com>

Flake improvements (#630)

Layout: unified · split

flake.nix +24 −1
@@ -45,14 +45,22 @@
45 fileset = lib.fileset.unions [ 45 fileset = lib.fileset.unions [
46 (craneLib.fileset.commonCargoSources ./.) 46 (craneLib.fileset.commonCargoSources ./.)
47 ./src/windows/welcome.md 47 ./src/windows/welcome.md
48
49 ./docs/iamb.1
50 ./docs/iamb.5
51 ./docs/iamb.svg
52 ./docs/iamb.metainfo.xml
53 ./iamb.desktop
48 ]; 54 ];
49 }; 55 };
50 56
51 commonArgs = { 57 commonArgs = rec {
52 inherit src; 58 inherit src;
53 strictDeps = true; 59 strictDeps = true;
54 pname = "iamb"; 60 pname = "iamb";
55 version = self.shortRev or self.dirtyShortRev; 61 version = self.shortRev or self.dirtyShortRev;
62
63 VERGEN_GIT_SHA = version;
56 }; 64 };
57 65
58 # Build *just* the cargo dependencies, so we can reuse 66 # Build *just* the cargo dependencies, so we can reuse
@@ -62,6 +70,21 @@
62 # Build the actual crate 70 # Build the actual crate
63 iamb = craneLib.buildPackage (commonArgs // { 71 iamb = craneLib.buildPackage (commonArgs // {
64 inherit cargoArtifacts; 72 inherit cargoArtifacts;
73
74 nativeBuildInputs = [ pkgs.installShellFiles ];
75 postInstall = ''
76 installManPage $src/docs/iamb.{1,5}
77 install -D $src/docs/iamb.svg -t $out/share/icons/hicolor/scalable/apps
78 install -D $src/docs/iamb.metainfo.xml $out/share/appdata/chat.iamb.iamb.appdata.xml
79 install -D $src/iamb.desktop -t $out/share/applications
80 '';
81
82 meta = {
83 description = "Matrix client for Vim addicts";
84 mainProgram = "iamb";
85 homepage = "https://github.com/ulyssa/iamb";
86 license = lib.licenses.asl20;
87 };
65 }); 88 });
66 in 89 in
67 { 90 {