insomnia: 2022.1.1 -> 2022.3.0, fix build

This commit is contained in:
Jonathan Ringer 2022-06-03 23:24:11 -07:00 committed by Jonathan Ringer
parent 28e86b81de
commit b4d6c7a42e

View File

@ -15,16 +15,21 @@ let
];
in stdenv.mkDerivation rec {
pname = "insomnia";
version = "2022.1.1";
version = "2022.3.0";
src = fetchurl {
url =
"https://github.com/Kong/insomnia/releases/download/core%40${version}/Insomnia.Core-${version}.deb";
sha256 = "sha256-AaRiXGdKCzcsY4GEgLr5PO+f7STsR+p7ybGISdJlCVk=";
sha256 = "sha256-Y+M9nnJEE8FSrD58Q+spjICqV8zoc7Y2eVJLH/8qYDE=";
};
nativeBuildInputs =
[ autoPatchelfHook dpkg makeWrapper gobject-introspection wrapGAppsHook ];
nativeBuildInputs = [
autoPatchelfHook
dpkg
makeWrapper
gobject-introspection
wrapGAppsHook
];
buildInputs = [
alsa-lib
@ -61,6 +66,7 @@ in stdenv.mkDerivation rec {
dontBuild = true;
dontConfigure = true;
dontWrapGApps = true;
unpackPhase = "dpkg-deb -x $src .";
@ -69,7 +75,6 @@ in stdenv.mkDerivation rec {
mv usr/share/* $out/share/
mv opt/Insomnia/* $out/share/insomnia
mv $out/share/insomnia/*.so $out/lib/
ln -s $out/share/insomnia/insomnia $out/bin/insomnia
sed -i 's|\/opt\/Insomnia|'$out'/bin|g' $out/share/applications/insomnia.desktop