add shell environment
This commit is contained in:
parent
33e4f6ffb3
commit
36c7da7d5a
2 changed files with 31 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use nix
|
30
shell.nix
Normal file
30
shell.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
let
|
||||||
|
pkgs = import <nixpkgs> {
|
||||||
|
overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
python3 = prev.python3.override {
|
||||||
|
packageOverrides = pythonFinal: pythonPrev: {
|
||||||
|
python-escpos = pythonPrev.python-escpos.overrideAttrs (oldAttrs: {
|
||||||
|
version = "0.0.0+unstable-2024-10-10";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
|
rev = "7d42f117161362e99c56431ebeb2ef1e9c91c495";
|
||||||
|
hash = "sha256-Wl7naHbsYfN+VYASQXyWrLNF953nwoM0ugiutE2jYNI=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
devshell = import <devshell> { };
|
||||||
|
in
|
||||||
|
|
||||||
|
# alias print="lp -d EPSON-TM-m30 -o lpi=10 -o cpi=15"
|
||||||
|
devshell.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
(python3.withPackages (p: with p; [
|
||||||
|
python-escpos
|
||||||
|
pycups
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue