Skip to content

Commit

Permalink
release v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Feb 3, 2024
1 parent e91531b commit 3341e53
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.1] - 2024-02-03

### Fixed

- Fixed unix release builds.

## [0.1.0] - 2024-02-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "comodoro"
description = "CLI to manage personal time"
version = "0.1.0"
version = "0.1.1"
authors = ["soywod <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
23 changes: 14 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,22 @@
mkPackages = buildPlatform:
let
pkgs = import nixpkgs { system = buildPlatform; };
defaultPackage = mkPackage pkgs buildPlatform null { };
mkPackageWithTarget = mkPackage pkgs buildPlatform;
mkPackage' = mkPackage pkgs buildPlatform;
in
{
default = defaultPackage;
linux = defaultPackage;
macos = defaultPackage;
musl = mkPackageWithTarget "x86_64-unknown-linux-musl" {
rec {
default = if pkgs.stdenv.isDarwin then macos else linux;
linux = mkPackage' null { };
linux-musl = mkPackage' "x86_64-unknown-linux-musl" {
CARGO_BUILD_RUSTFLAGS = "-C target-feature=+crt-static";
};
windows = mkPackageWithTarget "x86_64-pc-windows-gnu" {
macos = mkPackage' null (with pkgs.darwin.apple_sdk.frameworks; {
# NOTE: needed to prevent error Undefined symbols
# "_OBJC_CLASS_$_NSImage" and
# "_LSCopyApplicationURLsForBundleIdentifier"
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit";
buildInputs = [ Cocoa ];
});
windows = mkPackage' "x86_64-pc-windows-gnu" {
strictDeps = true;
depsBuildBuild = with pkgs.pkgsCross.mingwW64; [
stdenv.cc
Expand All @@ -95,8 +100,8 @@
mkApps = buildPlatform: {
default = mkApp self.packages.${buildPlatform}.default;
linux = mkApp self.packages.${buildPlatform}.linux;
linux-musl = mkApp self.packages.${buildPlatform}.linux-musl;
macos = mkApp self.packages.${buildPlatform}.macos;
musl = mkApp self.packages.${buildPlatform}.musl;
windows =
let
pkgs = import nixpkgs { system = buildPlatform; };
Expand Down

0 comments on commit 3341e53

Please sign in to comment.