acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / st / steam-play-none / package.nix
blob5585d1aa3cb09de52ba06baafcadafc2d0792dae
1 { fetchFromGitHub
2 , stdenvNoCC
3 , lib
4 , bash
5 }:
6 stdenvNoCC.mkDerivation (finalAttrs: {
7   pname = "steam-play-none";
8   version = "0-unstable-2022-12-15";
9   src = fetchFromGitHub {
10     owner = "Scrumplex";
11     repo = "steam-play-none";
12     rev = "42e38706eb37fdaaedbe9951d59ef44148fcacbf";
13     hash = "sha256-sSHLrB5TlGMKpztTnbh5oIOhcrRd+ke2OUUbiQUqoh0=";
14   };
15   buildInputs = [ bash ];
16   strictDeps = true;
17   outputs = [ "out" "steamcompattool" ];
18   installPhase = ''
19     runHook preInstall
21     # Make it impossible to add to an environment. You should use the appropriate NixOS option.
22     # Also leave some breadcrumbs in the file.
23     echo "${finalAttrs.pname} should not be installed into environments. Please use programs.steam.extraCompatPackages instead." > $out
25     install -Dt $steamcompattool compatibilitytool.vdf toolmanifest.vdf
26     install -Dt $steamcompattool -m755 launch.sh
28     runHook postInstall
29   '';
31   meta = {
32     description = ''
33       Steam Play Compatibility Tool to run games as-is
35       (This is intended for use in the `programs.steam.extraCompatPackages` option only.)
36     '';
37     homepage = "https://github.com/Scrumplex/Steam-Play-None";
38     license = lib.licenses.cc0;
39     maintainers = with lib.maintainers; [ matthewcroughan Scrumplex ];
40     platforms = [ "x86_64-linux" ];
41   };