Skip to content

Commit

Permalink
file (added on linux only)
Browse files Browse the repository at this point in the history
macOS already has a file utility, and my intuition is that I should
prefer the built-in one.
  • Loading branch information
jeremyschlatter committed Sep 22, 2020
1 parent b1d30f1 commit 8973efc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
];
my-configs = pkgs: pkgs.runCommand "my-configs" {} "mkdir $out && cp -R ${./config} $out/config";
pkgs = system: {
inherit system;
pkgs = import nixpkgs {
inherit system;
config = {
Expand All @@ -53,7 +54,7 @@
defaultPackage.x86_64-darwin = self.bundle "jeremys-env" self.packages "x86_64-darwin";
defaultPackage.x86_64-linux = self.bundle "jeremys-env" self.packages "x86_64-linux";

packages = { pkgs, unstable }:
packages = { pkgs, unstable, system }:
let
my-shell = pkgs.linkFarm "my-shell" [{name="bin/shell"; path="${pkgs.bashInteractive_5}/bin/bash";}];
my-vim = import ./neovim.nix pkgs;
Expand Down Expand Up @@ -125,6 +126,8 @@
unzip # Open .zip files.
watch # Run a command repeatedly.
wget # Download files.
];
] ++ (if system != "x86_64-linux" then [] else [
file
]);
};
}

0 comments on commit 8973efc

Please sign in to comment.