nixui: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2022-03-29 13:03:55 +02:00
parent 35c43df711
commit fa1a23392d

View file

@ -1,12 +1,6 @@
{ lib, stdenv, pkgs, fetchgit, nix, node_webkit, makeDesktopItem
{ lib, stdenv, pkgs, fetchFromGitHub, nix, node_webkit, makeDesktopItem
, writeScript }:
let
version = "0.2.1";
src = fetchgit {
url = "https://github.com/matejc/nixui.git";
rev = "845a5f4a33f1d0c509c727c130d0792a5b450a38";
sha256 = "1ay3i4lgzs3axbby06l4vvspxi0aa9pwiil84qj0dqq1jb6isara";
};
nixui = (import ./nixui.nix {
inherit pkgs;
inherit (stdenv.hostPlatform) system;
@ -24,9 +18,15 @@ let
genericName = "NixUI";
};
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "nixui";
inherit version src;
version = "0.2.1";
src = fetchFromGitHub {
owner = "matejc";
repo = "nixui";
rev = version;
sha256 = "sha256-KisdzZIB4wYkJojGyG9SCsR+9d6EGuDX6mro/yiJw6s=";
};
installPhase = ''
mkdir -p $out/bin
ln -s ${script} $out/bin/nixui