Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reenable working clfswm #109066

Merged
merged 3 commits into from Jan 14, 2021
Merged

Conversation

michael-p-m-white
Copy link
Contributor

@michael-p-m-white michael-p-m-white commented Jan 12, 2021

Motivation for this change

I'm interested in trying out Common Lisp window managers, specifically CLFSWM. It appears that this window manager was never moved over to using quicklisp, as StumpWM (another Common Lisp window manager) was.

Things done

Added CLFSWM through quicklisp.
Added the 'clfswm' nixos module back in.
Updated the 'clfswm' nixos module to use the quicklisp CLFSWM, and not the normal (broken) CLFSWM package.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Comment on lines +3 to +6
baseName = ''clfswm'';
version = ''20161204-git'';

description = ''CLFSWM: Fullscreen Window Manager'';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
baseName = ''clfswm'';
version = ''20161204-git'';
description = ''CLFSWM: Fullscreen Window Manager'';
baseName = "clfswm";
version = "20161204-git";
description = "CLFSWM: Fullscreen Window Manager";

Comment on lines +11 to +12
url = ''http://beta.quicklisp.org/archive/clfswm/2016-12-04/clfswm-20161204-git.tgz'';
sha256 = ''1jgz127721dgcv3qm1knc335gy04vzh9gl0hshp256rxi82cpp73'';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url = ''http://beta.quicklisp.org/archive/clfswm/2016-12-04/clfswm-20161204-git.tgz'';
sha256 = ''1jgz127721dgcv3qm1knc335gy04vzh9gl0hshp256rxi82cpp73'';
url = "http://beta.quicklisp.org/archive/clfswm/2016-12-04/clfswm-20161204-git.tgz";
sha256 = "1jgz127721dgcv3qm1knc335gy04vzh9gl0hshp256rxi82cpp73";

Can we reuse version here?

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'' is now used for multiline strings in nix and " for single line.

@michael-p-m-white
Copy link
Contributor Author

@SuperSandro2000 Regarding all your comments clfswm.nix: all .nix files in the quicklisp-to-nix-output directory are automatically generated by quicklisp-to-nix (see README.txt in lisp-modules, as well as the "quicklisp-to-nix" derivation in lisp-packages.nix in the same directory). quicklisp-to-nix uses a templating library to produce these .nix files, which uses double single-quoted strings. I'm not familiar enough with this implementation to know if there's a fundamental reason for this, or if the original author just happened to think this was a better idea, but I can say the template file has used these double single-quoted strings since this was originally implemented in March 2017.

If this is a problem, we should update quicklisp-to-nix and regenerate all packages in quicklisp-to-nix-output, which seems like it should be its own issue. Perhaps the original author (@7c6f434c) should weigh in?

@SuperSandro2000
Copy link
Member

Didn't know that. You are right that it should be changed in the generator.

@7c6f434c 7c6f434c merged commit 01372e6 into NixOS:master Jan 14, 2021
@7c6f434c
Copy link
Member

I am not even the original author of the generating scripts…

@michael-p-m-white
Copy link
Contributor Author

@7c6f434c

I am not even the original author of the generating scripts…

Sorry; based on git log -- /path/to/nix-package.emb, it looked like you added this in commit 1300795. At any rate, you have the most commits against files in the quicklisp-to-nix directory, so I figured you would be the best person to weigh in on whether or not there were any blocking issues.

Cheers for the merge!

@7c6f434c
Copy link
Member

7c6f434c commented Jan 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants