From ac64ca99e33d8c137fb64ccd9a843b48eb8b92e6 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Thu, 5 Dec 2024 04:10:47 -0500 Subject: [PATCH 1/2] Add flake.nix --- flake.lock | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 22 +++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..df240d1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,57 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 0, + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "path": "/nix/store/c9wv7i0af6mysmy65x6nvyfw5izzxv4g-source", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f056ace --- /dev/null +++ b/flake.nix @@ -0,0 +1,22 @@ +{ + description = "edccchk"; + inputs = { flake-utils.url = "github:numtide/flake-utils"; }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { + packages = { + edccchk = pkgs.stdenv.mkDerivation { + name = "edccchk"; + src = ./.; + installPhase = "install -m 755 -Dt $out/bin edccchk"; + }; + default = self.packages.${system}.edccchk; + }; + apps = { + edccchk = + flake-utils.lib.mkApp { drv = self.packages.${system}.edccchk; }; + }; + }); +} From 4ea085dc48efd4c2269da1e0acd8d997aec4d587 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Thu, 5 Dec 2024 04:13:16 -0500 Subject: [PATCH 2/2] Add flake details to readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5bf528f..a486e6b 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,12 @@ Based on ECM v1.03 Copyright © 2002-2011 Neill Corlett Usage ===== -edccchk +`edccchk ` - RAW 2352 bytes/sector image of a CD. +Where `` is a RAW 2352 bytes/sector image of a CD. + +This utility is also available as a nix flake: +`nix run github:claunia/edccchk` Features ========