diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-15 16:55:18 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-26 12:13:10 -0300 |
commit | 90ab1593dd17fd08585a294ab2f274592c790707 (patch) | |
tree | a626cdd79a71440e28a5fbe9ebf84a8e76b1fb0e /pkgs/by-name/sm | |
parent | 18b69e20f4111631675c2697455f28deb0be541b (diff) |
smallwm: migrate to by-name
Diffstat (limited to 'pkgs/by-name/sm')
-rw-r--r-- | pkgs/by-name/sm/smallwm/package.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/by-name/sm/smallwm/package.nix b/pkgs/by-name/sm/smallwm/package.nix new file mode 100644 index 0000000000000..ceee59a326fac --- /dev/null +++ b/pkgs/by-name/sm/smallwm/package.nix @@ -0,0 +1,60 @@ +{ lib +, stdenv +, fetchFromGitHub +, doxygen +, graphviz +, libX11 +, libXrandr +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "smallwm"; + version = "unstable-2020-02-28"; + + src = fetchFromGitHub { + owner = "adamnew123456"; + repo = "SmallWM"; + rev = "c2dc72afa87241bcf7e646630f4aae216ce78613"; + hash = "sha256-6FPpw1HE0iV/ayl2NvVUApqUcwBElRLf9o216gPyEDM="; + }; + + nativeBuildInputs = [ + doxygen + graphviz + ]; + + buildInputs = [ + libX11 + libXrandr + ]; + + strictDeps = true; + + dontConfigure = true; + + makeFlags = [ + "CC=${stdenv.cc.targetPrefix}cc" + "CXX=${stdenv.cc.targetPrefix}c++" + ]; + + buildFlags = [ "all" "doc" ]; + + installPhase = '' + runHook preInstall + + install -dm755 $out/bin $out/share/doc/smallwm-${finalAttrs.version} + install -m755 bin/smallwm -t $out/bin + cp -r README.markdown doc/html doc/latex $out/share/doc/smallwm-${finalAttrs.version} + + runHook postInstall + ''; + + meta = { + description = "A small X window manager, extended from tinywm"; + homepage = "https://github.com/adamnew123456/SmallWM"; + license = lib.licenses.bsd2; + mainProgram = "smallwm"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + inherit (libX11.meta) platforms; + }; +}) |