diff --git a/nix/xrsh-package.nix b/nix/xrsh-package.nix new file mode 100644 index 0000000..4391b66 --- /dev/null +++ b/nix/xrsh-package.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchgit, lib }: + +stdenv.mkDerivation rec { + pname = "xrsh"; + version = "0.142"; + + src = fetchgit { + fetchSubmodules = true; + url = "https://codeberg.org/xrsh/xrsh.git"; + rev = "12f84e4cf72bf1e1268a6a4120594a825a8f66a7"; + sha256 = "sha256-0MBBlqL2TWgN94ErI2Joub0Aub5XBxGWXILPDAfiNpc="; + }; + + dontBuild = true; + + installPhase = '' + mkdir $out + cp -r $src/{index.html,src,xrsh.ico,xrsh.svg} $out/. + ''; + + meta = with lib; { + description = "XR shell which runs a linux ISO in WebXR"; + license = "GPL3"; + homepage = "https://xrsh.isvery.ninja"; + maintainers = with maintainers; [ coderofsalvation ]; + platforms = [ "i686-linux" "x86_64-linux" "x86_64-windows" "i686-windows" "x86_64-darwin" ]; + }; +} + diff --git a/nix/xrsh.nix.bak b/nix/xrsh.nix.bak deleted file mode 100644 index 6e9948b..0000000 --- a/nix/xrsh.nix.bak +++ /dev/null @@ -1,25 +0,0 @@ -{ stdenv, fetchurl }: - -stdenv.mkDerivation rec { - pname = "xrsh"; - version = "0.1"; - - src = fetchurl { - url = "https://codeberg.org/xrsh/xrsh/archive/24e117f5125e4b2ecd7432baf6fdd5f60e6b3a70.tar.gz"; - sha256 = "11v22pijnjm3mb3n8dki4m95rc73azschfwvh2c1pc3bxrfsk0k8"; - }; - - #cosmopolitan = pkgs.callPackage pkgs.cosmopolitan { }; - - ## Override derivation to modify buildFlags - #redbean = cosmopolitan.overrideDerivation (oldAttrs: { - # buildFlags = oldAttrs.buildFlags ++ ["--enable-feature-x"]; - #}); - - buildInputs = []; - - buildFlags = []; - - # Define phases if needed, e.g., build, install, etc. - # phases = [ "buildPhase" "installPhase" ]; -} diff --git a/src/manual.html b/src/manual.html deleted file mode 100644 index edbb0f8..0000000 --- a/src/manual.html +++ /dev/null @@ -1,28 +0,0 @@ - - -
-
-