snowfallorg / snow Goto Github PK
View Code? Open in Web Editor NEWA commandline wrapper for the Nix package manager
License: MIT License
A commandline wrapper for the Nix package manager
License: MIT License
If snow isn't running on nixos, it should allow you to use the -s flag and have packages installed in the nix default profile.
I get this error on NixOS 22.11.3196.cd34d6ed7ba:
[davidak@gaming:~]$ nix run github:snowflakelinux/snow
error: attribute 'defaultApp.x86_64-linux' should have type 'derivation'
nix profile install github:snowflakelinux/snow
works.
Fresh Ubuntu WSL with nix installled with nix-installer
Log:
❯ nix profile install github:snowfallorg/snow --show-trace
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'snow-0.0.2'
whose name attribute is located at /nix/store/f6jk9gi6i92ngcbkcz8z2d7gvkksciw1-source/pkgs/stdenv/generic/make-derivation.nix:286:7
… while evaluating attribute 'cargoDeps' of derivation 'snow-0.0.2'
at /nix/store/f6jk9gi6i92ngcbkcz8z2d7gvkksciw1-source/pkgs/build-support/rust/build-rust-package/default.nix:106:10:
105| } // {
106| inherit buildAndTestSubdir cargoDeps;
| ^
107|
… while evaluating derivation 'cargo-vendor-dir'
whose name attribute is located at /nix/store/f6jk9gi6i92ngcbkcz8z2d7gvkksciw1-source/pkgs/stdenv/generic/make-derivation.nix:286:7
… while evaluating attribute 'buildCommand' of derivation 'cargo-vendor-dir'
at /nix/store/f6jk9gi6i92ngcbkcz8z2d7gvkksciw1-source/pkgs/build-support/trivial-builders.nix:87:14:
86| enableParallelBuilding = true;
87| inherit buildCommand name;
| ^
88| passAsFile = [ "buildCommand" ]
… from call site
at /nix/store/f6jk9gi6i92ngcbkcz8z2d7gvkksciw1-source/pkgs/build-support/rust/import-cargo-lock.nix:71:22:
70| # individually.
71| gitShaOutputHash = lib.mapAttrs' (nameVer: hash:
| ^
72| let
… while calling 'mapAttrs''
at /nix/store/f6jk9gi6i92ngcbkcz8z2d7gvkksciw1-source/lib/attrsets.nix:458:5:
457| # Attribute set to map over.
458| set:
| ^
459| listToAttrs (map (attr: f attr set.${attr}) (attrNames set));
error: A hash was specified for nix-data-0.0.2, but there is no corresponding git dependency.
I think that exception appears because of migrating to snowfallorg.
I have some fixes on a local branch and would like to open a pull request but it doesn't look like I have permissions to create a branch on the remote. Could you guys consider opening up the repository so others can contribute to the project. Thanks.
snow search
appears to only search nixpkgs
Isn't needed but is a "nice to have"
I just wanted to try using snow, but when I try to install a package, I get an error:
$ nix run github:snowflakelinux/snow -- install lolcat
error: Could not find latest nixpkgs version
NixOS version: 22.11
Nix version: 2.11.1
The tool should have a command to show it's version.
I suggest version
to be consistent with the other commands, but also support --version
for compatibility.
It makes also sense to show the Nix version in a second line.
Currently:
[davidak@gaming:~]$ nix run github:snowflakelinux/snow --version
nix (Nix) 2.8.1
[davidak@gaming:~]$ nix run github:snowflakelinux/snow version
error: The subcommand 'version' wasn't recognized
Usage: snow <COMMAND>
For more information try '--help'
helps when I manually edit the configuration.nix, so I don't have to use snow update -s
We could add this command to have an advantage over apt etc.
Would that violate the philosophy of this tool?
There should be a feature where snow would use home manager to install packages. snow should be able work with home-manager for the root profile as well. maybe a -H flag for home-manager. for the root profile /nix/var/nix/profiles/default
you can use the flag -dH or -Hd.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.