nix-home/home/osu.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

2021-10-09 02:52:28 +00:00
{ pkgs, config, lib, ... }:
let
2024-01-18 19:28:26 +00:00
osu-pkg = pkgs.unstable.osu-lazer-bin;
# pkgs.unstable.osu-lazer-bin.overrideAttrs (attrs: rec {
# version = "2023.1130.0";
# src = pkgs.fetchurl {
# url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
# hash = "sha256-dQuyKjCZaIl3uaI81qRMt5NzBxfmyROVbJrVAqzuZxg=";
# };
# });
# with pkgs; with lib;
# appimageTools.wrapType2 rec {
# pname = "osu-lazer-bin";
# version = "2023.1229.1";
# src = pkgs.fetchurl {
# url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
# hash = "sha256-x2LqBbQCswwJ5iENjad17dzWV95lY03P7FXGQwMRNE8=";
# # hash = fakeHash;
# };
2023-02-17 10:28:50 +00:00
2024-01-18 19:28:26 +00:00
# extraPkgs = pkgs: with pkgs; [ icu ];
2023-02-17 10:28:50 +00:00
2024-01-18 19:28:26 +00:00
# extraInstallCommands =
# let contents = appimageTools.extract { inherit pname version src; };
# in
# ''
# mv -v $out/bin/${pname}-${version} $out/bin/osu\!
# install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications
# for i in 16 32 48 64 96 128 256 512 1024; do
# install -D ${contents}/osu\!.png $out/share/icons/hicolor/''${i}x$i/apps/osu\!.png
# done
# '';
# };
2021-10-09 02:52:28 +00:00
in
{
2023-02-17 10:28:50 +00:00
home.packages = [ osu-pkg ];
# home.packages = [ pkgs.osu-lazer ];
2021-10-09 02:52:28 +00:00
}